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

Commit d54a97a0 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am fb1e5529: Merge "Fix time zone info in kernel is nothing after reboot"

Merge commit 'fb1e5529' into gingerbread-plus-aosp

* commit 'fb1e5529':
  Fix time zone info in kernel is nothing after reboot
parents 9dfa3037 fb1e5529
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -124,6 +124,14 @@ class AlarmManagerService extends IAlarmManager.Stub {
    public AlarmManagerService(Context context) {
        mContext = context;
        mDescriptor = init();

        // We have to set current TimeZone info to kernel
        // because kernel doesn't keep this after reboot
        String tz = SystemProperties.get(TIMEZONE_PROPERTY);
        if (tz != null) {
            setTimeZone(tz);
        }

        PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
        mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);