mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-24 06:35:46 +00:00
fix notification icon
This commit is contained in:
parent
3351238dce
commit
517f77a462
4 changed files with 9 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
NAME=4.3.7
|
||||
CODE=7781
|
||||
CODE=7801
|
||||
Loading…
Reference in a new issue