From 724d323125378457bfcef87862cf94ec87aa7b54 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Tue, 25 Aug 2020 20:34:30 +1000 Subject: [PATCH] Share activity complies with day/night configuration. --- AndroidManifest.xml | 2 +- res/drawable/ic_baseline_search_24.xml | 10 ++++++++++ res/layout/contact_selection_list_divider.xml | 9 ++++++--- res/layout/contact_selection_list_fragment.xml | 11 +++++------ res/layout/share_activity.xml | 5 ++--- src/org/thoughtcrime/securesms/ShareActivity.java | 3 --- 6 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 res/drawable/ic_baseline_search_24.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2aeb30db50..52881021fc 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -205,7 +205,7 @@ android:screenOrientation="portrait" android:noHistory="true" android:taskAffinity="" - android:theme="@style/TextSecure.LightNoActionBar" + android:theme="@style/Theme.TextSecure.DayNight.NoActionBar" android:windowSoftInputMode="stateHidden"> diff --git a/res/drawable/ic_baseline_search_24.xml b/res/drawable/ic_baseline_search_24.xml new file mode 100644 index 0000000000..07b76d6275 --- /dev/null +++ b/res/drawable/ic_baseline_search_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/layout/contact_selection_list_divider.xml b/res/layout/contact_selection_list_divider.xml index e4474b10bf..6e88fade98 100644 --- a/res/layout/contact_selection_list_divider.xml +++ b/res/layout/contact_selection_list_divider.xml @@ -3,8 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?attr/contact_list_divider"> + android:layout_height="wrap_content"> + + \ No newline at end of file diff --git a/res/layout/contact_selection_list_fragment.xml b/res/layout/contact_selection_list_fragment.xml index 6b25a16a05..d5721853cf 100644 --- a/res/layout/contact_selection_list_fragment.xml +++ b/res/layout/contact_selection_list_fragment.xml @@ -1,7 +1,7 @@ - + android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools"> @@ -35,14 +34,14 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" - android:scrollbars="vertical" /> + android:scrollbars="vertical" + tools:listitem="@layout/view_user"/> diff --git a/res/layout/share_activity.xml b/res/layout/share_activity.xml index c2338cfbaa..7e6d04936d 100644 --- a/res/layout/share_activity.xml +++ b/res/layout/share_activity.xml @@ -13,7 +13,7 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:minHeight="?attr/actionBarSize" - android:background="@color/action_bar_background" + android:background="?colorPrimary" android:elevation="0dp" android:theme="@style/Session.DarkActionBar"> @@ -24,7 +24,6 @@ diff --git a/src/org/thoughtcrime/securesms/ShareActivity.java b/src/org/thoughtcrime/securesms/ShareActivity.java index d242ec42f0..bc105805a7 100644 --- a/src/org/thoughtcrime/securesms/ShareActivity.java +++ b/src/org/thoughtcrime/securesms/ShareActivity.java @@ -75,7 +75,6 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity public static final String EXTRA_ADDRESS_MARSHALLED = "address_marshalled"; public static final String EXTRA_DISTRIBUTION_TYPE = "distribution_type"; - private final DynamicTheme dynamicTheme = new DynamicNoActionBarTheme(); private final DynamicLanguage dynamicLanguage = new DynamicLanguage(); private ContactSelectionListFragment contactsFragment; @@ -88,7 +87,6 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity @Override protected void onPreCreate() { - dynamicTheme.onCreate(this); dynamicLanguage.onCreate(this); } @@ -122,7 +120,6 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity public void onResume() { Log.i(TAG, "onResume()"); super.onResume(); - dynamicTheme.onResume(this); dynamicLanguage.onResume(this); }