fix notification icon

This commit is contained in:
Phillip Thelen 2024-05-30 07:50:40 +02:00
parent 3351238dce
commit 517f77a462
4 changed files with 9 additions and 5 deletions

View file

@ -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>

View file

@ -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
@ -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 {

View file

@ -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),
)

View file

@ -1,2 +1,2 @@
NAME=4.3.7
CODE=7781
CODE=7801