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

Commit 80d6f234 authored by Yorke Lee's avatar Yorke Lee
Browse files

Set default clock style to digital

Bug: 7210759 Default clock style should be digital
Change-Id: I2d5786e7290703e83987ca5444617f3e8d54d400
parent 39e46988
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4,9 +4,7 @@
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0
 
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,7 +22,7 @@
            android:title="@string/clock_style"
            android:entries="@array/clock_style_entries"
            android:entryValues="@array/clock_style_values"
            android:defaultValue="analog"
            android:defaultValue="digital"
            android:dialogTitle="@string/clock_style" />
        <CheckBoxPreference
            android:key="automatic_home_clock"
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ public class ClockFragment extends DeskClockFragment {

    private void setClockStyle() {
        SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity());
        String style = sharedPref.getString(SettingsActivity.KEY_CLOCK_STYLE, "analog");
        String style = sharedPref.getString(SettingsActivity.KEY_CLOCK_STYLE, "digital");
        if (style.equals("analog")) {
            mDigitalClock.setVisibility(View.GONE);
            mAnalogClock.setVisibility(View.VISIBLE);