1. seandroid
  2. Untitled project
  3. packages/apps/Settings

Commits

Narayan Kamath  committed 9ebc27c

Revert "Set 24 hour pref. with ACTION_TIME_CHANGED."

This reverts commit d5d9d373619de3437593763578854a83f5539306.

Change-Id: I76eeb6f95a4cbbd241db1fb90528b4d91ddf7707

  • Participants
  • Parent commits d5d9d37
  • Branches master

Comments (0)

Files changed (1)

File src/com/android/settings/DateTimeSettings.java

View file
  • Ignore whitespace
 import android.content.SharedPreferences;
 import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
 import android.os.Bundle;
+import android.os.SystemClock;
 import android.preference.CheckBoxPreference;
 import android.preference.ListPreference;
 import android.preference.Preference;
 import android.view.View;
 import android.widget.DatePicker;
 import android.widget.TimePicker;
+
 import java.text.SimpleDateFormat;
 import java.util.Calendar;
 import java.util.Date;
             removeDialog(DIALOG_TIMEPICKER);
             showDialog(DIALOG_TIMEPICKER);
         } else if (preference == mTime24Pref) {
-            final boolean is24Hour = ((CheckBoxPreference)mTime24Pref).isChecked();
-            set24Hour(is24Hour);
+            set24Hour(((CheckBoxPreference)mTime24Pref).isChecked());
             updateTimeAndDateDisplay(getActivity());
-            timeUpdated(is24Hour);
+            timeUpdated();
         }
         return super.onPreferenceTreeClick(preferenceScreen, preference);
     }
         updateTimeAndDateDisplay(getActivity());
     }
 
-    private void timeUpdated(boolean is24Hour) {
+    private void timeUpdated() {
         Intent timeChanged = new Intent(Intent.ACTION_TIME_CHANGED);
-        timeChanged.putExtra(Intent.EXTRA_TIME_PREF_24_HOUR_FORMAT, is24Hour);
         getActivity().sendBroadcast(timeChanged);
     }