From d64d05a540d902a44e211ed02dfd797f990d31ec Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Wed, 15 Oct 2014 16:53:14 +0100 Subject: [PATCH] Refactor the duplicate Switch IME button to an include Move duplicate code for switching input method from crypt_keeper_*_field.xml to an include. Bug: 16375532 Change-Id: I0f9000d4a8c4bc8751b8cefd98fe429cbb02c37a --- res/layout/crypt_keeper_password_field.xml | 11 +------ res/layout/crypt_keeper_pattern_field.xml | 11 +------ res/layout/crypt_keeper_pin_field.xml | 11 +------ .../crypt_keeper_switch_input_method.xml | 31 +++++++++++++++++++ 4 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 res/layout/crypt_keeper_switch_input_method.xml diff --git a/res/layout/crypt_keeper_password_field.xml b/res/layout/crypt_keeper_password_field.xml index 2d98b25845f..9f2c598b0db 100644 --- a/res/layout/crypt_keeper_password_field.xml +++ b/res/layout/crypt_keeper_password_field.xml @@ -28,15 +28,6 @@ android:inputType="textPassword" style="@style/TextAppearance.CryptKeeper_PasswordEntry" /> - + diff --git a/res/layout/crypt_keeper_pattern_field.xml b/res/layout/crypt_keeper_pattern_field.xml index cf6a29fb487..e12f77b7a83 100644 --- a/res/layout/crypt_keeper_pattern_field.xml +++ b/res/layout/crypt_keeper_pattern_field.xml @@ -26,15 +26,6 @@ android:layout_height="match_parent" android:background="@color/lock_pattern_background" /> - + diff --git a/res/layout/crypt_keeper_pin_field.xml b/res/layout/crypt_keeper_pin_field.xml index 2fc1e818972..af0ade5771d 100644 --- a/res/layout/crypt_keeper_pin_field.xml +++ b/res/layout/crypt_keeper_pin_field.xml @@ -28,15 +28,6 @@ android:inputType="numberPassword" style="@style/TextAppearance.CryptKeeper_PasswordEntry" /> - + diff --git a/res/layout/crypt_keeper_switch_input_method.xml b/res/layout/crypt_keeper_switch_input_method.xml new file mode 100644 index 00000000000..b55db22f340 --- /dev/null +++ b/res/layout/crypt_keeper_switch_input_method.xml @@ -0,0 +1,31 @@ + + + +