Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eed60be7 authored by Rob Emery's avatar Rob Emery
Browse files

Showing option in settings and the switch options need to be bools

parent 6c055722
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -696,7 +696,7 @@ public class StorageUtils {
        }
        SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
        boolean useZuluTime = sharedPreferences.getString(PreferenceKeys.SaveZuluTimePreferenceKey, "local").equals("zulu");
        boolean includeMilliseconds = sharedPreferences.getString(PreferenceKeys.SaveIncludeMillisecondsPreferenceKey, "false").equals("true");
        boolean includeMilliseconds = sharedPreferences.getBoolean(PreferenceKeys.SaveIncludeMillisecondsPreferenceKey, false);
        String dateFormatPattern = "yyyyMMdd_HHmmss";
        if(includeMilliseconds) {
            dateFormatPattern += ".SSS";
+2 −0
Original line number Diff line number Diff line
@@ -119,6 +119,8 @@
    <string name="preference_save_video_prefix">Save video prefix</string>
    <string name="preference_save_video_prefix_summary">The prefix to use for the save filenames for videos</string>
    <string name="preference_save_zulu_time">Time format for filename</string>
    <string name="preference_save_include_milliseconds">Use milliseconds in filename</string>
    <string name="preference_save_include_milliseconds_summary">If enabled, filenames will include milliseconds</string>
    <string name="preference_show_when_locked">Show camera when locked</string>
    <string name="preference_show_when_locked_summary">If enabled, Open Camera will still show above any lockscreen (you\'ll still have to unlock to access Settings, Gallery etc)</string>
    <string name="preference_startup_focus">Perform auto-focus on startup</string>
+7 −0
Original line number Diff line number Diff line
@@ -137,6 +137,13 @@
        android:defaultValue="local"
        />

    <SwitchPreference
        android:key="preference_save_include_milliseconds"
        android:title="@string/preference_save_include_milliseconds"
        android:summary="@string/preference_save_include_milliseconds_summary"
        android:defaultValue="false"
        />

    <SwitchPreference
        android:key="preference_show_when_locked"
        android:title="@string/preference_show_when_locked"