aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-10-22 23:38:47 +0530
committerGitHub <noreply@github.com>2020-10-22 23:38:47 +0530
commit4a9151870d8e5196248b2abc09df8fbb1593c265 (patch)
tree7d738c1facc2bb2da98cbe8d794738487d7f2595 /app/src/main/res/layout
parent260145ce164855c9ed0c8555a5acfbac18563306 (diff)
downloadHardenedPass-4a9151870d8e5196248b2abc09df8fbb1593c265.tar.gz
HardenedPass-4a9151870d8e5196248b2abc09df8fbb1593c265.zip
Remove accessibility autofill support (#1162)
* autofill: remove Accessibility backend Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * CHANGELOG: update Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/autofill_instructions.xml64
-rw-r--r--app/src/main/res/layout/autofill_recycler_view.xml43
-rw-r--r--app/src/main/res/layout/autofill_row_layout.xml41
-rw-r--r--app/src/main/res/layout/fragment_autofill.xml84
4 files changed, 0 insertions, 232 deletions
diff --git a/app/src/main/res/layout/autofill_instructions.xml b/app/src/main/res/layout/autofill_instructions.xml
deleted file mode 100644
index e5f16a61..00000000
--- a/app/src/main/res/layout/autofill_instructions.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingLeft="24dp"
- android:paddingTop="20dp"
- android:paddingRight="24dp"
- android:paddingBottom="20dp">
-
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/pref_autofill_enable_msg"
- android:textSize="16sp" />
-
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
- android:adjustViewBounds="true"
- android:contentDescription="@string/autofill_ins_1_hint"
- android:src="@drawable/autofill_ins_1" />
-
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:adjustViewBounds="true"
- android:contentDescription="@string/autofill_ins_2_hint"
- android:src="@drawable/autofill_ins_2" />
-
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/pref_autofill_enable_msg2"
- android:textSize="16sp" />
-
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="match_parent"
- android:layout_height="114dp"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
- android:contentDescription="@string/autofill_ins_3_hint"
- android:src="@drawable/autofill_ins_3" />
-
- <androidx.appcompat.widget.AppCompatTextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/pref_autofill_enable_msg3"
- android:textSize="16sp" />
-
-
- </LinearLayout>
-</ScrollView>
diff --git a/app/src/main/res/layout/autofill_recycler_view.xml b/app/src/main/res/layout/autofill_recycler_view.xml
deleted file mode 100644
index aa7b17fc..00000000
--- a/app/src/main/res/layout/autofill_recycler_view.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/autofill_recycler"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scrollbars="none"
- tools:itemCount="20"
- tools:listitem="@layout/autofill_row_layout" />
-
- <ProgressBar
- android:id="@+id/progress_bar"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:indeterminate="true"
- android:visibility="gone" />
-
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentBottom="true"
- android:layout_gravity="bottom|end"
- android:layout_margin="@dimen/fab_compat_margin"
- android:src="@drawable/ic_add_48dp"
- app:backgroundTint="?attr/colorSecondary"
- app:borderWidth="0dp"
- app:elevation="6dp"
- app:pressedTranslationZ="12dp"
- app:rippleColor="?attr/colorSecondary" />
-</RelativeLayout>
diff --git a/app/src/main/res/layout/autofill_row_layout.xml b/app/src/main/res/layout/autofill_row_layout.xml
deleted file mode 100644
index 5d3cad95..00000000
--- a/app/src/main/res/layout/autofill_row_layout.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="64dp"
- android:background="?android:attr/selectableItemBackground"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin">
-
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/app_icon"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:contentDescription="@string/app_icon_hint" />
-
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginStart="8dp"
- android:gravity="center_vertical"
- android:orientation="vertical">
-
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/app_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
-
- <androidx.appcompat.widget.AppCompatTextView
- android:id="@+id/secondary_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:textColor="?android:attr/textColor" />
- </LinearLayout>
-
-</LinearLayout>
diff --git a/app/src/main/res/layout/fragment_autofill.xml b/app/src/main/res/layout/fragment_autofill.xml
deleted file mode 100644
index bb1d48aa..00000000
--- a/app/src/main/res/layout/fragment_autofill.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
- ~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingLeft="24dp"
- android:paddingTop="20dp"
- android:paddingRight="24dp"
- android:paddingBottom="20dp">
-
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="URL">
-
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/webURL"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:inputType="textUri" />
- </com.google.android.material.textfield.TextInputLayout>
-
- <RadioGroup
- android:id="@+id/autofill_radiogroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <RadioButton
- android:id="@+id/use_default"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:checked="false"
- android:text="@string/autofill_apps_default" />
-
- <RadioButton
- android:id="@+id/first"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:checked="false"
- android:text="@string/autofill_apps_first" />
-
- <RadioButton
- android:id="@+id/match"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:checked="false"
- android:text="@string/autofill_apps_match_ellipsis" />
-
- <ListView
- android:id="@+id/matched"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_weight="1" />
-
- <com.google.android.material.button.MaterialButton
- android:id="@+id/matchButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:text="+"
- tools:ignore="HardcodedText" />
-
- <RadioButton
- android:id="@+id/never"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:checked="false"
- android:text="@string/autofill_apps_never" />
-
- </RadioGroup>
-
-</LinearLayout>