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

Commit f72545a2 authored by Dan Sandler's avatar Dan Sandler Committed by Daniel Sandler
Browse files

Update demo mode clock to 8:00 for O.

Also, save myself the trouble of updating it next time.

Change-Id: Id7394903f5091cb54dbe4ebc421cdd2a50560f54
Fixes: 64137268
Test: manual: settings>developer>demo>enable & show
parent 563e4982
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -154,7 +154,15 @@ public class DemoModeFragment extends PreferenceFragment implements OnPreference
        getContext().sendBroadcast(intent);

        intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK);
        intent.putExtra("hhmm", "0700");

        String demoTime = "1010"; // 10:10, a classic choice of horologists
        try {
            String[] versionParts = android.os.Build.VERSION.RELEASE.split("\\.");
            int majorVersion = Integer.valueOf(versionParts[0]);
            demoTime = String.format("%02d00", majorVersion % 24);
        } catch (IllegalArgumentException ex) {
        }
        intent.putExtra("hhmm", demoTime);
        getContext().sendBroadcast(intent);

        intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK);