Merge pull request #2861 from ByteHamster/pref-expanded-notification
Hiding expand notification preference on API 26
This commit is contained in:
commit
2ccdb6ace8
|
@ -227,6 +227,9 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= 26) {
|
||||||
|
ui.findPreference(UserPreferences.PREF_EXPANDED_NOTIFICATION).setVisible(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupStorageScreen() {
|
private void setupStorageScreen() {
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class UserPreferences {
|
||||||
public static final String PREF_HIDDEN_DRAWER_ITEMS = "prefHiddenDrawerItems";
|
public static final String PREF_HIDDEN_DRAWER_ITEMS = "prefHiddenDrawerItems";
|
||||||
private static final String PREF_DRAWER_FEED_ORDER = "prefDrawerFeedOrder";
|
private static final String PREF_DRAWER_FEED_ORDER = "prefDrawerFeedOrder";
|
||||||
private static final String PREF_DRAWER_FEED_COUNTER = "prefDrawerFeedIndicator";
|
private static final String PREF_DRAWER_FEED_COUNTER = "prefDrawerFeedIndicator";
|
||||||
private static final String PREF_EXPANDED_NOTIFICATION = "prefExpandNotify";
|
public static final String PREF_EXPANDED_NOTIFICATION = "prefExpandNotify";
|
||||||
private static final String PREF_PERSISTENT_NOTIFICATION = "prefPersistNotify";
|
private static final String PREF_PERSISTENT_NOTIFICATION = "prefPersistNotify";
|
||||||
public static final String PREF_COMPACT_NOTIFICATION_BUTTONS = "prefCompactNotificationButtons";
|
public static final String PREF_COMPACT_NOTIFICATION_BUTTONS = "prefCompactNotificationButtons";
|
||||||
public static final String PREF_LOCKSCREEN_BACKGROUND = "prefLockscreenBackground";
|
public static final String PREF_LOCKSCREEN_BACKGROUND = "prefLockscreenBackground";
|
||||||
|
|
|
@ -427,8 +427,8 @@
|
||||||
<string name="pref_rewind_sum">Customize the number of seconds to jump backwards when the rewind button is clicked</string>
|
<string name="pref_rewind_sum">Customize the number of seconds to jump backwards when the rewind button is clicked</string>
|
||||||
<string name="pref_gpodnet_sethostname_title">Set hostname</string>
|
<string name="pref_gpodnet_sethostname_title">Set hostname</string>
|
||||||
<string name="pref_gpodnet_sethostname_use_default_host">Use default host</string>
|
<string name="pref_gpodnet_sethostname_use_default_host">Use default host</string>
|
||||||
<string name="pref_expandNotify_title">Expand Notification</string>
|
<string name="pref_expandNotify_title">High Notification priority</string>
|
||||||
<string name="pref_expandNotify_sum">Always expand the notification to show playback buttons.</string>
|
<string name="pref_expandNotify_sum">This usually expands the notification to show playback buttons.</string>
|
||||||
<string name="pref_persistNotify_title">Persistent Playback Controls</string>
|
<string name="pref_persistNotify_title">Persistent Playback Controls</string>
|
||||||
<string name="pref_persistNotify_sum">Keep notification and lockscreen controls when playback is paused.</string>
|
<string name="pref_persistNotify_sum">Keep notification and lockscreen controls when playback is paused.</string>
|
||||||
<string name="pref_compact_notification_buttons_title">Set Lockscreen Buttons</string>
|
<string name="pref_compact_notification_buttons_title">Set Lockscreen Buttons</string>
|
||||||
|
|
Loading…
Reference in New Issue