Skip to content

Commit 2aef678

Browse files
committed
fix: Offset badge
1 parent 818dc09 commit 2aef678

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/src/main/java/app/revanced/manager/ui/screen/DashboardScreen.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ fun DashboardScreen(
171171
) {
172172
BadgedBox(
173173
badge = {
174-
Badge(
175-
// A size value above 6.dp forces the Badge icon to be closer to the center, fixing a clipping issue
176-
modifier = Modifier.size(7.dp),
177-
containerColor = MaterialTheme.colorScheme.primary,
178-
)
174+
Badge(modifier = Modifier.size(6.dp))
179175
}
180176
) {
181177
Icon(Icons.Outlined.Update, stringResource(R.string.update))
@@ -238,7 +234,9 @@ fun DashboardScreen(
238234
}
239235
}
240236

241-
val showBatteryOptimizationsWarning by vm.showBatteryOptimizationsWarningFlow.collectAsStateWithLifecycle(false)
237+
val showBatteryOptimizationsWarning by vm.showBatteryOptimizationsWarningFlow.collectAsStateWithLifecycle(
238+
false
239+
)
242240
Notifications(
243241
if (!Aapt.supportsDevice()) {
244242
{

0 commit comments

Comments
 (0)