fix shop grid. fixes #844

This commit is contained in:
Phillip Thelen 2017-11-02 17:03:50 +01:00
parent e250d42fa5
commit cfa0e22290

View file

@ -161,7 +161,7 @@ class ShopFragment : BaseFragment() {
var spanCount = 0
val context = context
if (context != null && context.resources != null) {
val itemWidth: Float = context.resources.getDimension(R.dimen.pet_width)
val itemWidth: Float = context.resources.getDimension(R.dimen.reward_width)
spanCount = (width / itemWidth).toInt()
}