universal7885: parts: Show free space and swapfile size

This commit is contained in:
roynatech2544 2022-04-20 11:31:13 +09:00
commit 0a612ac913
8 changed files with 59 additions and 17 deletions

View file

@ -61,6 +61,9 @@
<string name="swap_size_title">Swap size</string>
<string name="swap_size_summary">Adjust the size of swap</string>
<string name="swap_description">Creates the swap (not zram) on /data partiton. Useful for low memory devices.</string>
<string name="free_space">Free space on /data</string>
<string name="swap_file_size">Swap file size</string>
<!-- Display Category -->
<string name="misc_category">Misc</string>
<string name="dt2w_mode">Toggle for double tap to wake</string>

View file

@ -2,5 +2,7 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/swap_title">
<com.android.settingslib.widget.MainSwitchPreference android:defaultValue="false" android:key="swap_enable" android:title="@string/swap_enable_title"/>
<SeekBarPreference android:key="swap_size" android:title="@string/swap_size_title" android:icon="@drawable/ic_memory" android:summary="@string/swap_size_summary"/>
<Preference android:key="free_space" android:title="@string/free_space" android:selectable="false"/>
<Preference android:key="swap_file_size" android:title="@string/swap_file_size" android:selectable="false"/>
<com.android.settingslib.widget.FooterPreference android:title="@string/swap_description" android:selectable="false"/>
</PreferenceScreen>