From 89d1c9d03f3b895e3049f8aceb434074730e0b4f Mon Sep 17 00:00:00 2001 From: Austin Hogan Date: Sat, 21 Sep 2019 15:19:02 -0400 Subject: [PATCH] Music Apps Activity --- .../java/com/adam/aslfms/MusicAppsActivity.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/src/main/java/com/adam/aslfms/MusicAppsActivity.java b/app/src/main/java/com/adam/aslfms/MusicAppsActivity.java index ab9ca2b7..dcf00d5c 100644 --- a/app/src/main/java/com/adam/aslfms/MusicAppsActivity.java +++ b/app/src/main/java/com/adam/aslfms/MusicAppsActivity.java @@ -116,6 +116,19 @@ public boolean onPreferenceTreeClick(PreferenceScreen prefScreen, mapi.setEnabled(this, checked ? 1 : 0); setSMASummary(pref, mapi); + switch (mapi.getEnabledValue()){ + case 0: + pref.setIcon(android.R.drawable.checkbox_off_background); + break; + case 1: + pref.setIcon(android.R.drawable.checkbox_on_background); + break; + case 2: + default: + pref.setIcon(android.R.drawable.stat_sys_warning); + break; + } + if (checked && mScrobbleDroidInstalled && mapi.clashesWithScrobbleDroid()) { Util.warningDialog(this, getString(