Add an option to change time format. Properly show message time in ViewPrivateMessagesActivity.

This commit is contained in:
Alex Ning
2020-07-02 18:59:53 +08:00
parent 3a72c5a1f8
commit 9a4edde8fb
20 changed files with 242 additions and 126 deletions

View File

@@ -27,10 +27,9 @@
app:key="vote_buttons_on_the_right"
app:title="@string/settings_vote_buttons_on_the_right_title" />
<SwitchPreference
app:defaultValue="false"
app:key="show_elapsed_time"
app:title="@string/settings_show_elapsed_time" />
<Preference
app:title="@string/settings_time_format_title"
app:fragment="ml.docilealligator.infinityforreddit.Settings.TimeFormatPreferenceFragment" />
<ListPreference
app:defaultValue="0"

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreference
app:defaultValue="false"
app:key="show_elapsed_time"
app:title="@string/settings_show_elapsed_time" />
<ListPreference
app:defaultValue="MMM d, yyyy, HH:mm"
app:entries="@array/settings_time_format"
app:entryValues="@array/settings_time_format_values"
app:key="time_format"
app:title="@string/settings_time_format_title"
app:useSimpleSummaryProvider="true" />
</PreferenceScreen>