From c8a08510ce4ee34483fd961ba9bdad07d54c0612 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Fri, 25 Sep 2015 21:31:40 +0200 Subject: [PATCH] always initialize checkboxes AppBlacklistActivity, not only when App is in blacklist Closes #129 --- .../gadgetbridge/activities/AppBlacklistActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AppBlacklistActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AppBlacklistActivity.java index d95fd767..371572db 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AppBlacklistActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/AppBlacklistActivity.java @@ -77,9 +77,7 @@ public class AppBlacklistActivity extends Activity { deviceAppNameLabel.setText(appInfo.loadLabel(pm)); deviceImageView.setImageDrawable(appInfo.loadIcon(pm)); - if (GBApplication.blacklist.contains(appInfo.packageName)) { - checkbox.setChecked(true); - } + checkbox.setChecked(GBApplication.blacklist.contains(appInfo.packageName)); return view; }