OSDN Git Service

Add SettingsMultiSelectListPreference style DO NOT MERGE
authorYoshinori Hirano <Yoshinori.Hirano@sony.com>
Mon, 30 Oct 2017 05:38:57 +0000 (14:38 +0900)
committerYoshinori Hirano <Yoshinori.Hirano@sony.com>
Sat, 24 Feb 2018 16:00:05 +0000 (16:00 +0000)
There is no OK and CANCEL button when changing APN Bearer.
To fix this issue, OK and CANCEL button should be added to
SettingsMultiSelectListPreference style.

Fixes: 66928311
Test: manual - Add a new APN and tap Bearer

Change-Id: I2b5719a7c1fdb721b15308e0eef7db3e6398e097

res/values/styles_preference.xml
res/xml/apn_editor.xml

index 056d55a..99ccdfc 100644 (file)
@@ -36,4 +36,9 @@
         <item name="android:widgetLayout">@layout/preference_widget_sync_toggle</item>
     </style>
 
+    <style name="SettingsMultiSelectListPreference" parent="Preference.SettingsBase">
+        <item name="android:positiveButtonText">@android:string/ok</item>
+        <item name="android:negativeButtonText">@android:string/cancel</item>
+    </style>
+
 </resources>
\ No newline at end of file
index b1e332b..742a436 100644 (file)
         android:entries="@array/bearer_entries"
         android:entryValues="@array/bearer_values"
         android:persistent="false"
+        style="@style/SettingsMultiSelectListPreference"
         />
     <ListPreference
         android:title="@string/mvno_type"