2020-07-17 16:35:39 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<include layout="@layout/toolbar"/>
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="@dimen/change_password_activity_label_width"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="@string/volume_path"
|
2020-08-05 14:06:54 +02:00
|
|
|
android:textSize="@dimen/edit_text_label_text_size" />
|
2020-07-17 16:35:39 +02:00
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredEditText
|
|
|
|
android:id="@+id/edit_volume_path"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="text"
|
|
|
|
android:maxLines="1"/>
|
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredImageButton
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2020-07-21 15:05:05 +02:00
|
|
|
android:onClick="pickDirectory"
|
2020-07-17 16:35:39 +02:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:background="#00000000"
|
|
|
|
android:src="@drawable/icon_folder" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="@dimen/change_password_activity_label_width"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="@string/old_password"
|
2020-08-05 14:06:54 +02:00
|
|
|
android:textSize="@dimen/edit_text_label_text_size" />
|
2020-07-17 16:35:39 +02:00
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredEditText
|
|
|
|
android:id="@+id/edit_old_password"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:maxLines="1"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="@dimen/change_password_activity_label_width"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="@string/new_password"
|
2020-08-05 14:06:54 +02:00
|
|
|
android:textSize="@dimen/edit_text_label_text_size" />
|
2020-07-17 16:35:39 +02:00
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredEditText
|
|
|
|
android:id="@+id/edit_new_password"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:maxLines="1"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="@dimen/change_password_activity_label_width"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical"
|
2020-07-27 16:20:52 +02:00
|
|
|
android:text="@string/new_password_confirmation"
|
2020-08-05 14:06:54 +02:00
|
|
|
android:textSize="@dimen/edit_text_label_text_size" />
|
2020-07-17 16:35:39 +02:00
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredEditText
|
|
|
|
android:id="@+id/edit_new_password_confirm"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:imeOptions="actionDone"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredCheckBox
|
|
|
|
android:id="@+id/checkbox_remember_path"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:text="@string/remember_volume_path"
|
|
|
|
android:onClick="onClickRememberPath"/>
|
|
|
|
|
|
|
|
<sushi.hardcore.droidfs.widgets.ColoredCheckBox
|
|
|
|
android:id="@+id/checkbox_save_password"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:text="@string/fingerprint_save_checkbox_text"
|
|
|
|
android:onClick="onClickSavePasswordHash"/>
|
|
|
|
|
2020-07-27 16:20:52 +02:00
|
|
|
<sushi.hardcore.droidfs.widgets.NonScrollableColoredBorderListView
|
2020-07-17 16:35:39 +02:00
|
|
|
android:id="@+id/saved_path_listview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-28 22:25:10 +02:00
|
|
|
android:layout_marginHorizontal="@dimen/action_activity_listview_margin_horizontal"
|
|
|
|
android:layout_marginTop="@dimen/action_activity_listview_margin_top"
|
2020-07-17 16:35:39 +02:00
|
|
|
android:background="@drawable/listview_border"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-07-28 22:25:10 +02:00
|
|
|
android:padding="@dimen/warning_msg_padding"
|
2020-07-17 16:35:39 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/create_password_warning"/>
|
|
|
|
|
2020-08-05 14:06:54 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
2020-07-17 16:35:39 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/action_activity_button_height"
|
2020-07-28 22:25:10 +02:00
|
|
|
android:layout_marginHorizontal="@dimen/action_activity_button_horizontal_margin"
|
|
|
|
android:layout_marginBottom="@dimen/action_activity_button_margin_bottom"
|
2020-07-17 16:35:39 +02:00
|
|
|
android:onClick="onClickChangePassword"
|
|
|
|
android:text="@string/change_volume_password"
|
|
|
|
style="@style/button"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</LinearLayout>
|