Import settings from Riot - not all fonctional of course
9
vector/src/main/res/anim/anim_slide_in_bottom.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromYDelta="20%"
|
||||
android:toYDelta="0%" />
|
||||
</set>
|
9
vector/src/main/res/anim/anim_slide_nothing.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromYDelta="000%"
|
||||
android:toYDelta="000%" />
|
||||
</set>
|
14
vector/src/main/res/anim/anim_slide_out_bottom.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromYDelta="0%"
|
||||
android:toYDelta="20%" />
|
||||
<alpha
|
||||
android:duration="200"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0" />
|
||||
|
||||
</set>
|
16
vector/src/main/res/anim/unread_marker_anim.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<scale xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="1500"
|
||||
android:fromXScale="1"
|
||||
android:fromYScale="1"
|
||||
android:pivotX="50%p"
|
||||
android:pivotY="50%"
|
||||
android:toXScale="0"
|
||||
android:toYScale="0" />
|
||||
|
||||
<alpha
|
||||
android:duration="1500"
|
||||
android:fromAlpha="1"
|
||||
android:toAlpha="0" />
|
||||
</set>
|
BIN
vector/src/main/res/drawable-hdpi/unit_test.png
Normal file
After Width: | Height: | Size: 684 B |
BIN
vector/src/main/res/drawable-hdpi/unit_test_ko.png
Normal file
After Width: | Height: | Size: 577 B |
BIN
vector/src/main/res/drawable-hdpi/unit_test_ok.png
Normal file
After Width: | Height: | Size: 838 B |
BIN
vector/src/main/res/drawable-mdpi/unit_test.png
Normal file
After Width: | Height: | Size: 411 B |
BIN
vector/src/main/res/drawable-mdpi/unit_test_ko.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
vector/src/main/res/drawable-mdpi/unit_test_ok.png
Normal file
After Width: | Height: | Size: 548 B |
BIN
vector/src/main/res/drawable-xhdpi/unit_test.png
Normal file
After Width: | Height: | Size: 893 B |
BIN
vector/src/main/res/drawable-xhdpi/unit_test_ko.png
Normal file
After Width: | Height: | Size: 742 B |
BIN
vector/src/main/res/drawable-xhdpi/unit_test_ok.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/ic_add_black.png
Executable file
After Width: | Height: | Size: 114 B |
BIN
vector/src/main/res/drawable-xxhdpi/ic_eye_black.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/ic_eye_closed_black.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/ic_material_done_all_white.png
Executable file
After Width: | Height: | Size: 398 B |
BIN
vector/src/main/res/drawable-xxhdpi/ic_material_done_white.png
Executable file
After Width: | Height: | Size: 255 B |
BIN
vector/src/main/res/drawable-xxhdpi/ic_settings.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/icon_notif_important.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/incoming_call_notification_transparent.png
Executable file
After Width: | Height: | Size: 684 B |
BIN
vector/src/main/res/drawable-xxhdpi/logo_transparent.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/main_alias_icon.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/unit_test.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/unit_test_ko.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/unit_test_ok.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
vector/src/main/res/drawable-xxhdpi/vector_notification_accept_invitation.png
Executable file
After Width: | Height: | Size: 473 B |
BIN
vector/src/main/res/drawable-xxhdpi/vector_notification_open.png
Normal file
After Width: | Height: | Size: 318 B |
BIN
vector/src/main/res/drawable-xxhdpi/vector_notification_quick_reply.png
Executable file
After Width: | Height: | Size: 269 B |
BIN
vector/src/main/res/drawable-xxhdpi/vector_notification_reject_invitation.png
Executable file
After Width: | Height: | Size: 309 B |
BIN
vector/src/main/res/drawable-xxhdpi/vector_warning_red.png
Executable file
After Width: | Height: | Size: 436 B |
BIN
vector/src/main/res/drawable-xxxhdpi/unit_test.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
vector/src/main/res/drawable-xxxhdpi/unit_test_ko.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
vector/src/main/res/drawable-xxxhdpi/unit_test_ok.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
41
vector/src/main/res/layout/activity_vector_settings.xml
Executable file
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/VectorToolbarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/vector_settings_page"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?android:attr/colorBackground" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/vector_settings_spinner_views"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/vctr_waiting_background_color"
|
||||
android:clickable="true"
|
||||
android:visibility="gone">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/vector_settings_spinner"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="visible" />
|
||||
</FrameLayout>
|
||||
|
||||
</FrameLayout>
|
21
vector/src/main/res/layout/dialog_base_edit_text.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?dialogPreferredPadding"
|
||||
android:paddingLeft="?dialogPreferredPadding"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="?dialogPreferredPadding"
|
||||
android:paddingRight="?dialogPreferredPadding">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
</LinearLayout>
|
87
vector/src/main/res/layout/dialog_change_password.xml
Normal file
@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?dialogPreferredPadding"
|
||||
android:paddingLeft="?dialogPreferredPadding"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="?dialogPreferredPadding"
|
||||
android:paddingRight="?dialogPreferredPadding">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/Base.DialogWindowTitle.AppCompat"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/settings_change_password" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/change_password_show_passwords"
|
||||
android:layout_width="@dimen/layout_touch_size"
|
||||
android:layout_height="@dimen/layout_touch_size"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_eye_black"
|
||||
android:tint="?attr/colorAccent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/change_password_old_pwd_til"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/change_password_old_pwd_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/settings_old_password"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/change_password_new_pwd_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/settings_new_password"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/change_password_confirm_new_pwd_til"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:errorEnabled="true">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/change_password_confirm_new_pwd_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/settings_confirm_password"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/change_password_loader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</LinearLayout>
|
66
vector/src/main/res/layout/dialog_device_details.xml
Normal file
@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/device_container_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?dialogPreferredPadding"
|
||||
android:paddingLeft="?dialogPreferredPadding"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="?dialogPreferredPadding"
|
||||
android:paddingRight="?dialogPreferredPadding">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_id_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/devices_details_id_title"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_id"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
tools:text="a device id" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_name_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/devices_details_name_title"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
tools:text="a device name" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_last_seen_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/devices_details_last_seen_title"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_last_seen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
tools:text="x.x.x.x @ 01/01 00:00:00" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
27
vector/src/main/res/layout/dialog_preference_edit_text.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- This file is here to fix Google issue https://code.google.com/p/android/issues/detail?id=231576 -->
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="48dp"
|
||||
android:layout_marginBottom="48dp"
|
||||
android:overScrollMode="ifContentScrolls">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/edittext_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dp">
|
||||
|
||||
<EditText
|
||||
android:id="@android:id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
85
vector/src/main/res/layout/dialog_select_text_size.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/text_selection_group_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?dialogPreferredPadding"
|
||||
android:paddingLeft="?dialogPreferredPadding"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="?dialogPreferredPadding"
|
||||
android:paddingRight="?dialogPreferredPadding"
|
||||
tools:ignore="SpUsage">
|
||||
|
||||
<!-- keep the sizes in dp -->
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_tiny_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/tiny"
|
||||
android:textSize="10dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_small_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/small"
|
||||
android:textSize="12dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_normal_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/normal"
|
||||
android:textSize="14dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_large_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/large"
|
||||
android:textSize="16dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_larger_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/larger"
|
||||
android:textSize="18dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_largest_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/largest"
|
||||
android:textSize="20dp" />
|
||||
|
||||
<CheckedTextView
|
||||
android:id="@+id/text_selection_huge_text_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/huge"
|
||||
android:textSize="22dp" />
|
||||
</LinearLayout>
|
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:background="?android:attr/colorBackground">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/troubleshoot_test_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/troubleshoot_bottom_view"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:listitem="@layout/item_notification_troubleshoot" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/troubleshoot_bottom_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/colorBackground"
|
||||
android:minHeight="80dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?attr/vctr_list_divider_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/troubleshoot_summ_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:text="@string/settings_troubleshoot_diagnostic"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toubleshoot_summ_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
tools:text="@string/settings_troubleshoot_diagnostic_running_status" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/troubleshoot_run_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_margin="16dp"
|
||||
android:background="?attr/colorAccent"
|
||||
android:padding="8dp"
|
||||
android:text="@string/settings_troubleshoot_diagnostic_run_button_title"
|
||||
android:textColor="@android:color/white"
|
||||
android:visibility="gone"
|
||||
tools:enabled="false"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/troubleshoot_summ_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_margin="16dp"
|
||||
android:background="?attr/colorAccent"
|
||||
android:padding="8dp"
|
||||
android:text="@string/send_bug_report"
|
||||
android:textColor="@android:color/white"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
||||
android:background="?android:attr/colorBackground"
|
||||
android:minHeight="50dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/troubleshootStatusIcon"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_margin="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:srcCompat="@drawable/unit_test_ko" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/troubleshootTestTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/troubleshootTestDescription"
|
||||
app:layout_constraintEnd_toStartOf="@+id/troubleshootStatusIcon"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintHorizontal_chainStyle="spread"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
tools:text="@string/settings_troubleshoot_test_device_settings_title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/troubleshootTestDescription"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toTopOf="@id/troubleshootTestButton"
|
||||
app:layout_constraintEnd_toStartOf="@+id/troubleshootStatusIcon"
|
||||
app:layout_constraintHorizontal_bias="0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/troubleshootTestTitle"
|
||||
tools:text="@string/settings_troubleshoot_test_device_settings_failed"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/troubleshootTestButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:background="?attr/colorAccent"
|
||||
android:padding="8dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/troubleshootProgressBar"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/troubleshootTestDescription"
|
||||
tools:text="@string/settings_troubleshoot_test_device_settings_quickfix"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/troubleshootProgressBar"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_margin="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/troubleshootTestTitle"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
81
vector/src/main/res/layout/vector_preference_bing_rule.xml
Normal file
@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:baselineAligned="false"
|
||||
android:clipToPadding="false"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingLeft"
|
||||
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingRight"
|
||||
android:paddingRight="?android:attr/listPreferredItemPaddingRight">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textSize="16sp"
|
||||
tools:text="Title" />
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@android:id/title"
|
||||
android:layout_alignStart="@android:id/title"
|
||||
android:layout_alignLeft="@android:id/title"
|
||||
android:maxLines="2"
|
||||
android:paddingTop="6dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:textSize="14sp"
|
||||
tools:text="Summary"
|
||||
tools:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/bingPreferenceRadioGroup"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/bingPreferenceRadioBingRuleOff"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/notification_off"
|
||||
tools:checked="true" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/bingPreferenceRadioBingRuleSilent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/notification_silent" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/bingPreferenceRadioBingRuleNoisy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/notification_noisy" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
21
vector/src/main/res/layout/vector_preference_divider.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="5dp"
|
||||
android:background="?vctr_shadow_bottom" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:background="?vctr_preference_divider_color" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="3dp"
|
||||
android:background="?vctr_shadow_top" />
|
||||
</LinearLayout>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/main_address_icon_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/main_alias_icon" />
|
||||
|
||||
</FrameLayout>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/list_preference_warning_icon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/vector_warning_red" />
|
||||
|
||||
</FrameLayout>
|
24
vector/src/main/res/layout/vector_settings_round_avatar.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/settings_avatar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@tools:sample/avatars" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/avatar_update_progress_bar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</FrameLayout>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/settings_round_group_avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@tools:sample/avatars" />
|
||||
|
||||
</FrameLayout>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp">
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="visible" />
|
||||
</RelativeLayout>
|
11
vector/src/main/res/menu/home.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/sliding_menu_settings"
|
||||
android:icon="@drawable/ic_settings"
|
||||
android:title="@string/room_sliding_menu_settings"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
</menu>
|
136
vector/src/main/res/values/array.xml
Normal file
@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Room tags -->
|
||||
<string-array name="tag_entries">
|
||||
<item>@string/room_settings_tag_pref_entry_favourite</item>
|
||||
<item>@string/room_settings_tag_pref_entry_low_priority</item>
|
||||
<item>@string/room_settings_tag_pref_entry_none</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="tag_values">
|
||||
<item>"m.favourite"</item>
|
||||
<item>"m.lowpriority"</item>
|
||||
<item>"m.recent"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- access rules: Who can access this room? -->
|
||||
<string-array name="room_access_rules_entries">
|
||||
<item>@string/room_settings_room_access_entry_only_invited</item>
|
||||
<item>@string/room_settings_room_access_entry_anyone_with_link_apart_guest</item>
|
||||
<item>@string/room_settings_room_access_entry_anyone_with_link_including_guest</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="room_access_rules_values">
|
||||
<item>"1"</item>
|
||||
<item>"2"</item>
|
||||
<item>"3"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- read history rules: Who can read history? -->
|
||||
<string-array name="room_read_history_rules_entries">
|
||||
<item>@string/room_settings_read_history_entry_anyone</item>
|
||||
<item>@string/room_settings_read_history_entry_members_only_option_time_shared</item>
|
||||
<item>@string/room_settings_read_history_entry_members_only_invited</item>
|
||||
<item>@string/room_settings_read_history_entry_members_only_joined</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Room settings, access and visibility : WHO CAN READ HISTORY? (read rule) -->
|
||||
<string-array name="room_read_history_rules_values">
|
||||
<item>"world_readable"</item>
|
||||
<item>"shared"</item>
|
||||
<item>"invited"</item>
|
||||
<item>"joined"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- media settings -->
|
||||
<string-array name="compression_levels">
|
||||
<item>@string/compression_opt_list_choose</item>
|
||||
<item>@string/compression_opt_list_original</item>
|
||||
<item>@string/compression_opt_list_large</item>
|
||||
<item>@string/compression_opt_list_medium</item>
|
||||
<item>@string/compression_opt_list_small</item>
|
||||
</string-array>
|
||||
<string-array name="compression_level_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
</string-array>
|
||||
<string-array name="media_sources">
|
||||
<item>@string/media_source_choose</item>
|
||||
<item>@string/option_send_files</item>
|
||||
<item>@string/option_send_voice</item>
|
||||
<item>@string/option_send_sticker</item>
|
||||
<item>@string/option_take_photo</item>
|
||||
<item>@string/option_take_video</item>
|
||||
</string-array>
|
||||
<string-array name="media_source_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Room settings notification -->
|
||||
<string-array name="notification_entries">
|
||||
<item>@string/room_settings_all_messages_noisy</item>
|
||||
<item>@string/room_settings_all_messages</item>
|
||||
<item>@string/room_settings_mention_only</item>
|
||||
<item>@string/room_settings_mute</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="notification_values">
|
||||
<item>"ALL_MESSAGES_NOISY"</item>
|
||||
<item>"ALL_MESSAGES"</item>
|
||||
<item>"MENTIONS_ONLY"</item>
|
||||
<item>"MUTE"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Theme -->
|
||||
<string-array name="theme_entries">
|
||||
<item>@string/light_theme</item>
|
||||
<item>@string/dark_theme</item>
|
||||
<item>@string/black_them</item>
|
||||
<item>@string/status_theme</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="theme_values">
|
||||
<item>light</item>
|
||||
<item>dark</item>
|
||||
<item>black</item>
|
||||
<item>status</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Info area -->
|
||||
<string-array name="show_info_area_entries">
|
||||
<item>@string/show_info_area_always</item>
|
||||
<item>@string/show_info_area_messages_and_errors</item>
|
||||
<item>@string/show_info_area_only_errors</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="show_info_area_values">
|
||||
<item>always</item>
|
||||
<item>messages_and_errors</item>
|
||||
<item>only_errors</item>
|
||||
</string-array>
|
||||
|
||||
<!-- media saving choice list -->
|
||||
<string-array name="media_saving_choice">
|
||||
<item>@string/media_saving_period_3_days</item>
|
||||
<item>@string/media_saving_period_1_week</item>
|
||||
<item>@string/media_saving_period_1_month</item>
|
||||
<item>@string/media_saving_period_forever</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Notification status for bing rules -->
|
||||
<string-array name="notification_status">
|
||||
<item>@string/notification_off</item>
|
||||
<item>@string/notification_silent</item>
|
||||
<item>@string/notification_noisy</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="SETTINGS_NOTIFICATION_LEVEL"
|
||||
android:persistent="false"
|
||||
android:title="@string/settings_notification_by_event">
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_CONTAINING_MY_DISPLAY_NAME_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_containing_my_display_name" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_CONTAINING_MY_USER_NAME_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_containing_my_user_name" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_MESSAGES_IN_ONE_TO_ONE_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_messages_in_one_to_one" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_MESSAGES_IN_GROUP_CHAT_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_messages_in_group_chat" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_INVITED_TO_ROOM_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_invited_to_room" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_CALL_INVITATIONS_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_call_invitations" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.BingRulePreference
|
||||
android:key="SETTINGS_MESSAGES_SENT_BY_BOT_PREFERENCE_KEY_2"
|
||||
android:title="@string/settings_messages_sent_by_bot" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<!-- For API < 26 -->
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dialogTitle="@string/settings_notification_ringtone"
|
||||
android:key="SETTINGS_NOTIFICATION_RINGTONE_SELECTION_PREFERENCE_KEY"
|
||||
android:title="@string/settings_notification_ringtone" />
|
||||
|
||||
<!-- For API >= 26 -->
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_SYSTEM_NOISY_NOTIFICATION_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/settings_system_preferences_summary"
|
||||
android:title="@string/settings_noisy_notifications_preferences" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_SYSTEM_SILENT_NOTIFICATION_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/settings_system_preferences_summary"
|
||||
android:title="@string/settings_silent_notifications_preferences" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_SYSTEM_CALL_NOTIFICATION_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/settings_system_preferences_summary"
|
||||
android:title="@string/settings_call_notifications_preferences" />
|
||||
|
||||
</androidx.preference.PreferenceScreen>
|
504
vector/src/main/res/xml/vector_settings_preferences.xml
Executable file
@ -0,0 +1,504 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.preference.PreferenceScreen 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">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_USER_SETTINGS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_user_settings">
|
||||
|
||||
<im.vector.riotredesign.core.preference.UserAvatarPreference
|
||||
android:key="SETTINGS_PROFILE_PICTURE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_profile_picture" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorEditTextPreference
|
||||
android:key="SETTINGS_DISPLAY_NAME_PREFERENCE_KEY"
|
||||
android:summary="@string/settings_display_name"
|
||||
android:title="@string/settings_display_name" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_CHANGE_PASSWORD_PREFERENCE_KEY"
|
||||
android:summary="@string/password_hint"
|
||||
android:title="@string/settings_password" />
|
||||
|
||||
<!-- Email will be added here -->
|
||||
|
||||
<!-- Note: inputType does not work, it is set also in code, as well as iconTint -->
|
||||
<im.vector.riotredesign.core.preference.VectorEditTextPreference
|
||||
android:icon="@drawable/ic_add_black"
|
||||
android:inputType="textEmailAddress"
|
||||
android:key="ADD_EMAIL_PREFERENCE_KEY"
|
||||
android:order="100"
|
||||
android:title="@string/settings_add_email_address"
|
||||
app:iconTint="?attr/vctr_settings_icon_tint_color" />
|
||||
|
||||
<!-- Phone will be added here -->
|
||||
|
||||
<!-- Note: iconTint does not work, it is also done in code -->
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:icon="@drawable/ic_add_black"
|
||||
android:key="ADD_PHONE_NUMBER_PREFERENCE_KEY"
|
||||
android:order="200"
|
||||
android:title="@string/settings_add_phone_number"
|
||||
app:iconTint="?attr/vctr_settings_icon_tint_color" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_CONTACT_PREFERENCE_KEYS"
|
||||
android:title="@string/settings_contact">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="CONTACT_BOOK_ACCESS_KEY"
|
||||
android:title="@string/settings_contacts_app_permission" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dialogTitle="@string/settings_select_country"
|
||||
android:key="SETTINGS_CONTACTS_PHONEBOOK_COUNTRY_PREFERENCE_KEY"
|
||||
android:title="@string/settings_contacts_phonebook_country" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_USER_INTERFACE_KEY"
|
||||
android:title="@string/settings_user_interface">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dialogTitle="@string/settings_select_language"
|
||||
android:key="SETTINGS_INTERFACE_LANGUAGE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_interface_language" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorListPreference
|
||||
android:entries="@array/theme_entries"
|
||||
android:entryValues="@array/theme_values"
|
||||
android:key="APPLICATION_THEME_KEY"
|
||||
android:summary="%s"
|
||||
android:title="@string/settings_theme"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dialogTitle="@string/font_size"
|
||||
android:key="SETTINGS_INTERFACE_TEXT_SIZE_KEY"
|
||||
android:title="@string/font_size" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_SHOW_URL_PREVIEW_KEY"
|
||||
android:summary="@string/settings_inline_url_preview_summary"
|
||||
android:title="@string/settings_inline_url_preview" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_SEND_TYPING_NOTIF_KEY"
|
||||
android:summary="@string/settings_send_typing_notifs_summary"
|
||||
android:title="@string/settings_send_typing_notifs" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_ENABLE_MARKDOWN_KEY"
|
||||
android:summary="@string/settings_send_markdown_summary"
|
||||
android:title="@string/settings_send_markdown" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ALWAYS_SHOW_TIMESTAMPS_KEY"
|
||||
android:title="@string/settings_always_show_timestamps" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_12_24_TIMESTAMPS_KEY"
|
||||
android:title="@string/settings_12_24_timestamps" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_SHOW_READ_RECEIPTS_KEY"
|
||||
android:summary="@string/settings_show_read_receipts_summary"
|
||||
android:title="@string/settings_show_read_receipts" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_SHOW_JOIN_LEAVE_MESSAGES_KEY"
|
||||
android:summary="@string/settings_show_join_leave_messages_summary"
|
||||
android:title="@string/settings_show_join_leave_messages" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_SHOW_AVATAR_DISPLAY_NAME_CHANGES_MESSAGES_KEY"
|
||||
android:summary="@string/settings_show_avatar_display_name_changes_messages_summary"
|
||||
android:title="@string/settings_show_avatar_display_name_changes_messages" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_VIBRATE_ON_MENTION_KEY"
|
||||
android:title="@string/settings_vibrate_on_mention" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_SEND_MESSAGE_WITH_ENTER"
|
||||
android:summary="@string/settings_send_message_with_enter_summary"
|
||||
android:title="@string/settings_send_message_with_enter" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorListPreference
|
||||
android:defaultValue="always"
|
||||
android:entries="@array/show_info_area_entries"
|
||||
android:entryValues="@array/show_info_area_values"
|
||||
android:key="SETTINGS_SHOW_INFO_AREA_KEY"
|
||||
android:summary="%s"
|
||||
android:title="@string/settings_info_area_show" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_HOME_DISPLAY_KEY"
|
||||
android:title="@string/settings_home_display">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_PIN_MISSED_NOTIFICATIONS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_pin_missed_notifications" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_PIN_UNREAD_MESSAGES_PREFERENCE_KEY"
|
||||
android:title="@string/settings_pin_unread_messages" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_GROUPS_FLAIR_KEY"
|
||||
android:title="@string/settings_flair" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_NOTIFICATIONS_KEY"
|
||||
android:title="@string/settings_notifications">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"
|
||||
android:title="@string/settings_enable_all_notif" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:dependency="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_enable_this_device" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:dependency="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_TURN_SCREEN_ON_PREFERENCE_KEY"
|
||||
android:title="@string/settings_turn_screen_on" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dialogTitle="@string/settings_notification_privacy"
|
||||
android:key="SETTINGS_NOTIFICATION_PRIVACY_PREFERENCE_KEY"
|
||||
android:title="@string/settings_notification_privacy" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dependency="SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_NOTIFICATION_ADVANCED_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/settings_notification_advanced_summary"
|
||||
android:title="@string/settings_notification_advanced"
|
||||
app:fragment="im.vector.fragments.VectorSettingsNotificationsAdvancedFragment" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_NOTIFICATION_TROUBLESHOOT_PREFERENCE_KEY"
|
||||
android:title="@string/settings_notification_troubleshoot"
|
||||
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsNotificationsTroubleshootFragment" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_BACKGROUND_SYNC_PREFERENCE_KEY"
|
||||
android:title="@string/settings_background_sync">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_START_ON_BOOT_PREFERENCE_KEY"
|
||||
android:title="@string/settings_start_on_boot" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ENABLE_BACKGROUND_SYNC_PREFERENCE_KEY"
|
||||
android:title="@string/settings_enable_background_sync" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorEditTextPreference
|
||||
android:dependency="SETTINGS_ENABLE_BACKGROUND_SYNC_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_SET_SYNC_TIMEOUT_PREFERENCE_KEY"
|
||||
android:numeric="integer"
|
||||
android:title="@string/settings_set_sync_timeout" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorEditTextPreference
|
||||
android:dependency="SETTINGS_ENABLE_BACKGROUND_SYNC_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_SET_SYNC_DELAY_PREFERENCE_KEY"
|
||||
android:numeric="integer"
|
||||
android:title="@string/settings_set_sync_delay" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_BACKGROUND_SYNC_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_NOTIFICATIONS_TARGETS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_notifications_targets" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_NOTIFICATIONS_TARGET_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory android:title="@string/settings_media">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_USE_NATIVE_CAMERA_PREFERENCE_KEY"
|
||||
android:summary="@string/settings_labs_native_camera_summary"
|
||||
android:title="@string/settings_labs_native_camera" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_PLAY_SHUTTER_SOUND_KEY"
|
||||
|
||||
android:title="@string/settings_play_shutter_sound" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_PREVIEW_MEDIA_BEFORE_SENDING_KEY"
|
||||
android:title="@string/settings_preview_media_before_sending" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorListPreference
|
||||
android:defaultValue="0"
|
||||
android:entries="@array/compression_levels"
|
||||
android:entryValues="@array/compression_level_values"
|
||||
android:key="SETTINGS_DEFAULT_MEDIA_COMPRESSION_KEY"
|
||||
android:summary="%s"
|
||||
android:title="@string/settings_default_compression" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorListPreference
|
||||
android:defaultValue="0"
|
||||
android:entries="@array/media_sources"
|
||||
android:entryValues="@array/media_source_values"
|
||||
android:key="SETTINGS_DEFAULT_MEDIA_SOURCE_KEY"
|
||||
android:summary="%s"
|
||||
android:title="@string/settings_default_media_source" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory android:title="@string/settings_call_category">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:disableDependentsState="true"
|
||||
android:key="SETTINGS_CALL_RINGTONE_USE_RIOT_PREFERENCE_KEY"
|
||||
android:title="@string/settings_call_ringtone_use_riot_ringtone" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:dependency="SETTINGS_CALL_RINGTONE_USE_RIOT_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_CALL_RINGTONE_URI_PREFERENCE_KEY"
|
||||
android:title="@string/settings_call_ringtone_title" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_IGNORED_USERS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_ignored_users" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_IGNORE_USERS_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_LABS_PREFERENCE_KEY"
|
||||
android:title="@string/room_settings_labs_pref_title">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:focusable="false"
|
||||
android:key="labs_warning"
|
||||
android:title="@string/room_settings_labs_warning_message" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ROOM_SETTINGS_LABS_END_TO_END_PREFERENCE_KEY"
|
||||
android:title="@string/room_settings_labs_end_to_end" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:focusable="false"
|
||||
android:key="SETTINGS_ROOM_SETTINGS_LABS_END_TO_END_IS_ACTIVE_PREFERENCE_KEY"
|
||||
android:title="@string/room_settings_labs_end_to_end_is_active" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_DATA_SAVE_MODE_PREFERENCE_KEY"
|
||||
android:summary="@string/settings_data_save_mode_summary"
|
||||
android:title="@string/settings_data_save_mode" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="SETTINGS_USE_JITSI_CONF_PREFERENCE_KEY"
|
||||
android:title="@string/settings_labs_create_conference_with_jitsi" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ENABLE_SEND_VOICE_FEATURE_PREFERENCE_KEY"
|
||||
android:summary="@string/settings_labs_enable_send_voice_summary"
|
||||
android:title="@string/settings_labs_enable_send_voice" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<!-- ************ Cryptography section ************ -->
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_CRYPTOGRAPHY_PREFERENCE_KEY"
|
||||
android:title="@string/settings_cryptography">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_ENCRYPTION_INFORMATION_DEVICE_NAME_PREFERENCE_KEY"
|
||||
android:title="@string/encryption_information_device_name" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_ENCRYPTION_INFORMATION_DEVICE_ID_PREFERENCE_KEY"
|
||||
android:title="@string/encryption_information_device_id" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_ENCRYPTION_INFORMATION_DEVICE_KEY_PREFERENCE_KEY"
|
||||
android:title="@string/encryption_information_device_key" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_ENCRYPTION_NEVER_SENT_TO_PREFERENCE_KEY"
|
||||
android:summary="@string/encryption_never_send_to_unverified_devices_summary"
|
||||
android:title="@string/encryption_never_send_to_unverified_devices_title" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_CRYPTOGRAPHY_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_CRYPTOGRAPHY_MANAGE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_cryptography_manage_keys">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_SECURE_MESSAGE_RECOVERY_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/encryption_settings_manage_message_recovery_summary"
|
||||
android:title="@string/encryption_message_recovery" />
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_ENCRYPTION_EXPORT_E2E_ROOM_KEYS_PREFERENCE_KEY"
|
||||
android:summary="@string/encryption_export_room_keys_summary"
|
||||
android:title="@string/encryption_export_e2e_room_keys" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_ENCRYPTION_IMPORT_E2E_ROOM_KEYS_PREFERENCE_KEY"
|
||||
android:summary="@string/encryption_import_room_keys_summary"
|
||||
android:title="@string/encryption_import_e2e_room_keys" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_CRYPTOGRAPHY_MANAGE_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<!-- devices list: device ids + device names -->
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_DEVICES_LIST_PREFERENCE_KEY"
|
||||
android:title="@string/settings_devices_list" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider android:key="SETTINGS_DEVICES_DIVIDER_PREFERENCE_KEY" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory android:title="@string/settings_advanced">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_LOGGED_IN_PREFERENCE_KEY"
|
||||
android:title="@string/settings_logged_in"
|
||||
tools:summary="\@user:matrix.org" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_HOME_SERVER_PREFERENCE_KEY"
|
||||
android:title="@string/settings_home_server"
|
||||
tools:summary="@string/default_hs_server_url" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_IDENTITY_SERVER_PREFERENCE_KEY"
|
||||
android:title="@string/settings_identity_server"
|
||||
tools:summary="@string/default_identity_server_url" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_ANALYTICS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_analytics">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="SETTINGS_USE_ANALYTICS_KEY"
|
||||
android:summary="@string/settings_opt_in_of_analytics_summary"
|
||||
android:title="@string/settings_opt_in_of_analytics" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorSwitchPreference
|
||||
android:key="SETTINGS_USE_RAGE_SHAKE_KEY"
|
||||
android:title="@string/send_bug_report_rage_shake" />
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_OTHERS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_other">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="APP_INFO_LINK_PREFERENCE_KEY"
|
||||
android:summary="@string/settings_app_info_link_summary"
|
||||
android:title="@string/settings_app_info_link_title" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_VERSION_PREFERENCE_KEY"
|
||||
android:title="@string/settings_version"
|
||||
tools:summary="1.2.3" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_OLM_VERSION_PREFERENCE_KEY"
|
||||
android:title="@string/settings_olm_version"
|
||||
tools:summary="1.2.3" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_COPYRIGHT_PREFERENCE_KEY"
|
||||
android:title="@string/settings_copyright" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_APP_TERM_CONDITIONS_PREFERENCE_KEY"
|
||||
android:title="@string/settings_app_term_conditions" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_PRIVACY_POLICY_PREFERENCE_KEY"
|
||||
android:title="@string/settings_privacy_policy" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_THIRD_PARTY_NOTICES_PREFERENCE_KEY"
|
||||
android:title="@string/settings_third_party_notices" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_MEDIA_SAVING_PERIOD_KEY"
|
||||
android:title="@string/settings_keep_media" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_CLEAR_MEDIA_CACHE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_clear_media_cache" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_CLEAR_CACHE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_clear_cache" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceDivider />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreferenceCategory
|
||||
android:key="SETTINGS_DEACTIVATE_ACCOUNT_CATEGORY_KEY"
|
||||
android:title="@string/settings_deactivate_account_section">
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_DEACTIVATE_ACCOUNT_KEY"
|
||||
android:title="@string/settings_deactivate_my_account" />
|
||||
|
||||
</im.vector.riotredesign.core.preference.VectorPreferenceCategory>
|
||||
|
||||
</androidx.preference.PreferenceScreen>
|