diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-07-03 23:25:44 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-07-04 03:00:29 +0200 |
commit | b690f0d5023fcf144f2701058d5a6f88d66cc97a (patch) | |
tree | 7bf8c478f0171edfd7836433b757ad65ba4b83ed /packages/SystemUI/src/com/android/systemui/keyguard | |
parent | e05a56bf9386e2e0c6a862c3080698da8367a22e (diff) | |
download | frameworks_base-b690f0d5023fcf144f2701058d5a6f88d66cc97a.zip frameworks_base-b690f0d5023fcf144f2701058d5a6f88d66cc97a.tar.gz frameworks_base-b690f0d5023fcf144f2701058d5a6f88d66cc97a.tar.bz2 |
Clean up user activity handling
- Only call userActivity in down touch event
- Use normal timeout when QS is open
- Clean up old code regarding user activity in Keyguard
Change-Id: I968eeed33fef44def37b68eb1ddc63f1a531ab35
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 85f5888..0681ff4 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -29,7 +29,6 @@ import android.content.Intent; import android.content.IntentFilter; import android.media.AudioManager; import android.media.SoundPool; -import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Looper; @@ -45,8 +44,8 @@ import android.telephony.TelephonyManager; import android.util.EventLog; import android.util.Log; import android.util.Slog; -import android.view.ViewGroup; import android.view.IWindowManager; +import android.view.ViewGroup; import android.view.WindowManagerGlobal; import android.view.WindowManagerPolicy; @@ -65,8 +64,6 @@ import com.android.systemui.statusbar.phone.ScrimController; import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager; import com.android.systemui.statusbar.phone.StatusBarWindowManager; -import java.io.File; - import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT; @@ -406,10 +403,6 @@ public class KeyguardViewMediator extends SystemUI { KeyguardViewMediator.this.userActivity(); } - public void userActivity(long holdMs) { - KeyguardViewMediator.this.userActivity(holdMs); - } - public void keyguardDone(boolean authenticated) { KeyguardViewMediator.this.keyguardDone(authenticated, true); } @@ -439,13 +432,7 @@ public class KeyguardViewMediator extends SystemUI { } }; - private void userActivity() { - userActivity(AWAKE_INTERVAL_DEFAULT_MS); - } - - public void userActivity(long holdMs) { - // We ignore the hold time. Eventually we should remove it. - // Instead, the keyguard window has an explicit user activity timeout set on it. + public void userActivity() { mPM.userActivity(SystemClock.uptimeMillis(), false); } |