OSDN Git Service

Preferences: Move huge paragraph description to own item
authorStephen Bird <sbird@cyngn.com>
Thu, 9 Jul 2015 01:04:43 +0000 (18:04 -0700)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Thu, 16 Jul 2015 21:05:38 +0000 (14:05 -0700)
In some languages, this doesn't fit well into the switch
preference. This huge wall of text also looks pretty bad
when it shares a row with the switch itself. On its own
row, this fits quite nicely.

Change-Id: I0b35d84965a800e578d3557bfc522f34aabb79f0

res/xml/preferences_storage.xml

index c53f188..3db40f5 100644 (file)
       <SwitchPreference
         android:key="cm_filemanager_secure_storage_delayed_sync"
         android:title="@string/pref_secure_storage_delayed_sync_title"
-        android:summary="@string/pref_secure_storage_delayed_sync_summary"
         android:persistent="true"
         android:defaultValue="true" />
 
+      <Preference
+        android:summary="@string/pref_secure_storage_delayed_sync_summary"
+        android:selectable="false"/>
     </PreferenceCategory>
 
 </PreferenceScreen>