diff --git a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java index 8cf6cd3..e8ba65b 100644 --- a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java +++ b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java @@ -1,7 +1,6 @@ package com.blackforestbytes.simplecloudnotifier.view; import android.media.AudioManager; -import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -101,7 +100,9 @@ public class SettingsFragment extends Fragment prefAppEnabled.setChecked(s.Enabled); prefAppEnabled.setOnCheckedChangeListener((a,b) -> onUpdate()); - prefLocalCacheSize.setAdapter(new ArrayAdapter<>(v.getContext(), android.R.layout.simple_spinner_item, SCNSettings.CHOOSABLE_CACHE_SIZES)); + ArrayAdapter plcsa = new ArrayAdapter<>(v.getContext(), android.R.layout.simple_spinner_item, SCNSettings.CHOOSABLE_CACHE_SIZES); + plcsa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + prefLocalCacheSize.setAdapter(plcsa); prefLocalCacheSize.setSelection(getCacheSizeIndex(s.LocalCacheSize)); prefLocalCacheSize.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { diff --git a/android/app/src/main/res/layout/fragment_settings.xml b/android/app/src/main/res/layout/fragment_settings.xml index 8175d1c..a876dea 100644 --- a/android/app/src/main/res/layout/fragment_settings.xml +++ b/android/app/src/main/res/layout/fragment_settings.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content"> + + + + +