Skip to content

Commit

Permalink
fix notification icon
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed May 30, 2024
1 parent 3351238 commit 517f77a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Habitica/res/drawable/pill_bg_purple_300.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/background_brand"/>
<solid android:color="@color/brand_300"/>
<corners android:radius="20dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import androidx.core.view.GravityCompat
import androidx.core.view.isVisible
import androidx.drawerlayout.widget.DrawerLayout
import androidx.fragment.app.DialogFragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import androidx.recyclerview.widget.SimpleItemAnimator
import com.habitrpg.android.habitica.MainNavDirections
import com.habitrpg.android.habitica.R
Expand Down Expand Up @@ -652,8 +654,10 @@ class NavigationDrawerFragment : DialogFragment() {
// set UP the drawer's list view with items and click listener

lifecycleScope.launchCatching {
viewModel.getNotificationCount().collect {
setNotificationsCount(it)
repeatOnLifecycle(Lifecycle.State.STARTED) {
viewModel.getNotificationCount().collect {
setNotificationsCount(it)
}
}
}
lifecycleScope.launchCatching {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ internal fun EmptyFooter(type: String?, hasItems: Boolean) {
},
) {
Image(
painterResource(if (type == "backgrounds") R.drawable.customization_background else R.drawable.customization_mix),
painterResource(if (type == "background") R.drawable.customization_background else R.drawable.customization_mix),
null,
modifier = Modifier.padding(bottom = 16.dp),
)
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.3.7
CODE=7781
CODE=7801

0 comments on commit 517f77a

Please sign in to comment.