Loading res/xml/settings.xml +1 −3 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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" Loading src/com/android/deskclock/ClockFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
res/xml/settings.xml +1 −3 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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" Loading
src/com/android/deskclock/ClockFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading