From a22a0869e3e3dab1efec3abb563662ed4338d38a Mon Sep 17 00:00:00 2001 From: DenBond7 Date: Fri, 24 Jun 2022 17:26:08 +0300 Subject: [PATCH] Refactored code.| #1870 --- .../main/res/layout/action_item_switch.xml | 1 - .../res/layout/activity_create_message.xml | 6 +- .../src/main/res/layout/activity_main.xml | 7 +- .../main/res/layout/fragment_backup_keys.xml | 6 +- .../src/main/res/layout/fragment_legal.xml | 1 - FlowCrypt/src/main/res/values/styles.xml | 85 +++++++++++-------- FlowCrypt/src/main/res/values/themes.xml | 13 ++- 7 files changed, 65 insertions(+), 54 deletions(-) diff --git a/FlowCrypt/src/main/res/layout/action_item_switch.xml b/FlowCrypt/src/main/res/layout/action_item_switch.xml index 7f8e219d2a..f7f83a18ea 100644 --- a/FlowCrypt/src/main/res/layout/action_item_switch.xml +++ b/FlowCrypt/src/main/res/layout/action_item_switch.xml @@ -8,5 +8,4 @@ android:id="@+id/switchShowOnlyEncryptedMessages" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:theme="@style/AppWidget.Switch" tools:checked="true" /> diff --git a/FlowCrypt/src/main/res/layout/activity_create_message.xml b/FlowCrypt/src/main/res/layout/activity_create_message.xml index 17fb57abbb..dd86b96e12 100644 --- a/FlowCrypt/src/main/res/layout/activity_create_message.xml +++ b/FlowCrypt/src/main/res/layout/activity_create_message.xml @@ -15,18 +15,16 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:animateLayoutChanges="true" - android:theme="@style/AppTheme.NoActionBar.AppBarOverlay" android:visibility="visible" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - + android:layout_height="?android:attr/actionBarSize" /> diff --git a/FlowCrypt/src/main/res/layout/activity_main.xml b/FlowCrypt/src/main/res/layout/activity_main.xml index cada61ca7a..c0b23dd400 100644 --- a/FlowCrypt/src/main/res/layout/activity_main.xml +++ b/FlowCrypt/src/main/res/layout/activity_main.xml @@ -20,18 +20,15 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:animateLayoutChanges="true" - android:theme="@style/AppTheme.NoActionBar.AppBarOverlay" - android:visibility="visible" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - + android:layout_height="?android:attr/actionBarSize" /> diff --git a/FlowCrypt/src/main/res/layout/fragment_backup_keys.xml b/FlowCrypt/src/main/res/layout/fragment_backup_keys.xml index 1cf7433571..3b88a747da 100644 --- a/FlowCrypt/src/main/res/layout/fragment_backup_keys.xml +++ b/FlowCrypt/src/main/res/layout/fragment_backup_keys.xml @@ -21,8 +21,7 @@ android:layout_weight="1" android:checked="true" android:text="@string/email" - android:textAllCaps="true" - android:theme="@style/AppWidget.RadioButton" /> + android:textAllCaps="true" /> + android:textAllCaps="true" />