diff options
author | Dave Mankoff <mankoff@google.com> | 2020-09-23 14:01:33 +0000 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2020-09-24 11:04:51 -0400 |
commit | 9408c9089afba9f4125a2eff6e3707a8f404469c (patch) | |
tree | 789230c7058f6a1bdad444375426ebeadb277bf4 /packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java | |
parent | cf2591fa361b6a046ead5b2c17ae0e9296200bb0 (diff) |
Revert^2 "5/N Add KeyguardSecurityViewFlipperController."
612c5d78c418ff33b36a19a7911e4279a26bcf9b
Change-Id: Ic51f3c2dd7d49832927393df9831d956bfa45763
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java index b0b2cd8c74d9..83fcac6579f2 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java @@ -136,9 +136,9 @@ public class KeyguardInputViewController extends ViewController<KeyguardInputVie mView.onStartingToHide(); } - public void showSelf() { - KeyguardSecurityViewFlipper flipper = (KeyguardSecurityViewFlipper) mView.getParent(); - flipper.setDisplayedChild(flipper.indexOfChild(mView)); + /** Finds the index of this view in the suppplied parent view. */ + public int getIndexIn(KeyguardSecurityViewFlipper view) { + return view.indexOfChild(mView); } /** Factory for a {@link KeyguardInputViewController}. */ |