summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java
diff options
context:
space:
mode:
authorDave Mankoff <mankoff@google.com>2020-09-08 15:25:38 -0400
committerDave Mankoff <mankoff@google.com>2020-09-16 16:24:11 -0400
commit2f557d8922031f62bf3194589e990a7dd8378e64 (patch)
treeca4c4a861974923e73b6ec1cee340634c6f4efc3 /packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java
parent8f75cf99445bae63bb46602de9b6a0a3b6fad2bf (diff)
5/N Add KeyguardSecurityViewFlipperController.
Adds a Controller for KeyguardSecurityViewFlipper. Test: atest SystemUITests && manual Change-Id: Iecf265744a385efb7a9ab32a29b90c22054a4c84
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java6
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}. */