mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Add an option to change time format. Properly show message time in ViewPrivateMessagesActivity.
This commit is contained in:
@@ -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"
|
||||
|
16
app/src/main/res/xml/time_format_preferences.xml
Normal file
16
app/src/main/res/xml/time_format_preferences.xml
Normal 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>
|
Reference in New Issue
Block a user