fix several bugs with preferences
This commit is contained in:
parent
3b995be8bd
commit
5a9bba2444
4 changed files with 5 additions and 5 deletions
|
|
@ -165,7 +165,7 @@ public abstract class AbsMusicServiceActivity extends AbsBaseActivity implements
|
|||
public void onReceive(final Context context, @NonNull final Intent intent) {
|
||||
final String action = intent.getAction();
|
||||
AbsMusicServiceActivity activity = reference.get();
|
||||
if (activity != null) {
|
||||
if (activity != null && action != null) {
|
||||
switch (action) {
|
||||
case MusicService.META_CHANGED:
|
||||
activity.onPlayMetadataChanged();
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import com.dkanada.gramophone.util.PreferenceUtil;
|
|||
import com.dkanada.gramophone.util.Util;
|
||||
|
||||
public abstract class AbsThemeActivity extends ATHToolbarActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setTheme(PreferenceUtil.getInstance(this).getGeneralTheme());
|
||||
super.onCreate(savedInstanceState);
|
||||
MaterialDialogsUtil.updateMaterialDialogsThemeSingleton(this);
|
||||
ThemeStore.coloredNavigationBar(this);
|
||||
}
|
||||
|
||||
protected void setDrawUnderStatusbar() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
android:defaultValue="400000000"
|
||||
android:entries="@array/pref_images_cache_size_titles"
|
||||
android:entryValues="@array/pref_images_cache_size_values"
|
||||
android:key="images_cache_size"
|
||||
android:key="cache_size"
|
||||
android:negativeButtonText="@null"
|
||||
android:positiveButtonText="@null"
|
||||
android:title="@string/pref_title_images_cache_size" />
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
<com.kabouzeid.appthemehelper.common.prefs.supportv7.ATESwitchPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:defaultValue="false"
|
||||
android:key="images_external_directory"
|
||||
android:key="external_directory"
|
||||
android:summary="@string/pref_summary_images_external_directory"
|
||||
android:title="@string/pref_title_images_external_directory" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue