Skip to content

Commit 8b4c85a

Browse files
committed
fix: Always show both Restrict/Allow background buttons in app detail
1 parent db5cd7e commit 8b4c85a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/com/appcontrolx/ui/AppDetailBottomSheet.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ class AppDetailBottomSheet : BottomSheetDialogFragment() {
197197
binding.tvBatteryStatus.text = text
198198
binding.tvBatteryStatus.setTextColor(resources.getColor(color, null))
199199

200-
// Update button visibility based on current status
201-
binding.btnRestrictBg.visibility = if (currentBgStatus == BackgroundStatus.RESTRICTED) View.GONE else View.VISIBLE
202-
binding.btnAllowBg.visibility = if (currentBgStatus == BackgroundStatus.RESTRICTED) View.VISIBLE else View.GONE
200+
// Both buttons always visible - no hide/show
203201
}
204202

205203
private fun setupButtons() {

0 commit comments

Comments
 (0)