Skip to content

Commit

Permalink
fix levelup dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Aug 21, 2023
1 parent 8ebca19 commit 19bf9cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Habitica/res/navigation/navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,24 +443,28 @@
android:name="com.habitrpg.android.habitica.ui.fragments.inventory.shops.MarketFragment"
android:label="@string/market">
<deepLink app:uri="habitica.com/inventory/market" />
<deepLink app:uri="habitica.com/shops/market" />
</fragment>
<fragment
android:id="@+id/questShopFragment"
android:name="com.habitrpg.android.habitica.ui.fragments.inventory.shops.QuestShopFragment"
android:label="@string/questShop">
<deepLink app:uri="habitica.com/inventory/quests" />
<deepLink app:uri="habitica.com/shops/quests" />
</fragment>
<fragment
android:id="@+id/seasonalShopFragment"
android:name="com.habitrpg.android.habitica.ui.fragments.inventory.shops.SeasonalShopFragment"
android:label="@string/seasonalShop">
<deepLink app:uri="habitica.com/inventory/seasonal" />
<deepLink app:uri="habitica.com/shops/seasonal" />
</fragment>
<fragment
android:id="@+id/timeTravelersShopFragment"
android:name="com.habitrpg.android.habitica.ui.fragments.inventory.shops.TimeTravelersShopFragment"
android:label="@string/timeTravelers">
<deepLink app:uri="habitica.com/inventory/time" />
<deepLink app:uri="habitica.com/shops/time" />
</fragment>
<fragment
android:id="@+id/supportMainFragment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ class AvatarView : FrameLayout {
// full hero box when showMount and showPet is enabled (140w * 147h)
// compact hero box when only showBackground is enabled (114w * 114h)
// hero only box when all show settings disabled (90w * 90h)
val viewWidth = if (width > 0) width else layoutParams.width
val viewHeight = if (height > 0) height else layoutParams.height
val viewWidth = if (width > 0) width else (layoutParams?.width ?: 140)
val viewHeight = if (height > 0) height else (layoutParams?.height ?: 147)
val width = if (viewWidth > 0) viewWidth.toFloat() else 140.dpToPx(context).toFloat()
val height = if (viewHeight > 0) viewHeight.toFloat() else 147.dpToPx(context).toFloat()
avatarRectF = RectF(0f, 0f, width, height)
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NAME=4.2.5
CODE=6331
CODE=6341

0 comments on commit 19bf9cf

Please sign in to comment.