Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
Music Apps Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Hogan committed Sep 21, 2019
1 parent 690e6c7 commit 89d1c9d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/src/main/java/com/adam/aslfms/MusicAppsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 89d1c9d

Please sign in to comment.