From ac68f842d3f9c1816f0e0c1ff3e5e9b9ea165774 Mon Sep 17 00:00:00 2001 From: Ben Henning Date: Tue, 1 Nov 2022 00:57:56 -0700 Subject: [PATCH] Fix #4684: Revert (most of) #4587 (#4686) ## Explanation Fixes #4684 This PR reverts #4587. I think the change of match_parent to wraps_content caused the promoted story container to grow for larger images, and this wasn't caught until we tried the changes with production assets. I noticed other places in the PR that might have the same issue, so rather than trying to make sense of everything in order to properly fix it & add tests, I opted to revert the change since the regression is beta-blocking (even though it wasn't a clean reversion and required manual changes). Note that the reversion includes keeping the changes to recently_played_fragment since otherwise changes in RecentlyPlayedFragmentTest fail, and the change seems unlikely to cause any problems with respect to potential thumbnail sizing issues. ## Essential Checklist - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only There's not much to show here--see the issue for context on the problem. The post-reversion just reverts things back to their previous state (i.e. no regression). --- .../res/layout-sw600dp-land/faq_single_activity.xml | 2 +- .../layout-sw600dp-land/resume_lesson_fragment.xml | 9 +++++---- app/src/main/res/layout-sw600dp/help_activity.xml | 7 +++---- app/src/main/res/layout-sw600dp/option_activity.xml | 3 +-- app/src/main/res/layout-sw600dp/story_fragment.xml | 2 +- app/src/main/res/layout/admin_auth_activity.xml | 2 +- .../res/layout/administrator_controls_activity.xml | 3 +-- app/src/main/res/layout/app_language_activity.xml | 2 +- app/src/main/res/layout/app_version_activity.xml | 5 ++--- app/src/main/res/layout/audio_language_activity.xml | 2 +- .../main/res/layout/completed_story_list_fragment.xml | 2 +- .../main/res/layout/developer_options_activity.xml | 3 +-- app/src/main/res/layout/exploration_activity.xml | 2 +- app/src/main/res/layout/faq_single_activity.xml | 2 +- app/src/main/res/layout/help_activity.xml | 3 +-- .../main/res/layout/hints_and_solution_fragment.xml | 2 +- app/src/main/res/layout/home_activity.xml | 3 +-- .../main/res/layout/license_text_viewer_activity.xml | 2 +- .../res/layout/mark_chapters_completed_fragment.xml | 2 +- .../res/layout/mark_stories_completed_fragment.xml | 2 +- .../res/layout/mark_topics_completed_fragment.xml | 2 +- app/src/main/res/layout/my_downloads_fragment.xml | 2 +- .../main/res/layout/ongoing_topic_list_fragment.xml | 2 +- app/src/main/res/layout/option_activity.xml | 3 +-- app/src/main/res/layout/pin_password_activity.xml | 5 ++--- app/src/main/res/layout/policies_activity.xml | 1 + .../res/layout/profile_and_device_id_activity.xml | 2 +- app/src/main/res/layout/profile_edit_activity.xml | 2 +- app/src/main/res/layout/profile_list_fragment.xml | 2 +- app/src/main/res/layout/profile_picture_activity.xml | 2 +- app/src/main/res/layout/profile_progress_header.xml | 10 ++++------ app/src/main/res/layout/profile_rename_activity.xml | 2 +- .../main/res/layout/profile_reset_pin_activity.xml | 2 +- app/src/main/res/layout/promoted_story_card.xml | 8 +++----- .../main/res/layout/reading_text_size_activity.xml | 2 +- app/src/main/res/layout/revision_card_activity.xml | 2 +- app/src/main/res/layout/story_fragment.xml | 2 +- app/src/main/res/layout/topic_fragment.xml | 2 +- .../main/res/layout/topic_practice_footer_view.xml | 3 +-- app/src/main/res/values/styles.xml | 11 ++--------- 40 files changed, 54 insertions(+), 73 deletions(-) diff --git a/app/src/main/res/layout-sw600dp-land/faq_single_activity.xml b/app/src/main/res/layout-sw600dp-land/faq_single_activity.xml index e37111661f0..43e9dddbb6d 100644 --- a/app/src/main/res/layout-sw600dp-land/faq_single_activity.xml +++ b/app/src/main/res/layout-sw600dp-land/faq_single_activity.xml @@ -19,7 +19,7 @@ + android:orientation="horizontal" + android:baselineAligned="false"> + android:background="@color/component_color_resume_lesson_activity_background_color" + android:layout_weight="1"> + diff --git a/app/src/main/res/layout-sw600dp/help_activity.xml b/app/src/main/res/layout-sw600dp/help_activity.xml index e4d61f35995..138ca72a248 100644 --- a/app/src/main/res/layout-sw600dp/help_activity.xml +++ b/app/src/main/res/layout-sw600dp/help_activity.xml @@ -37,10 +37,10 @@ android:background="@color/component_color_help_activity_background_color" android:contentDescription="@string/help_activity_back_arrow_description" android:padding="12dp" + app:srcCompat="@drawable/ic_arrow_back_black_24_dp" android:visibility="gone" app:layout_constraintStart_toEndOf="@id/multipane_guideline" - app:layout_constraintTop_toTopOf="parent" - app:srcCompat="@drawable/ic_arrow_back_black_24_dp" /> + app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/layout-sw600dp/option_activity.xml b/app/src/main/res/layout-sw600dp/option_activity.xml index 16b8536e1ca..0a1b8a8d195 100644 --- a/app/src/main/res/layout-sw600dp/option_activity.xml +++ b/app/src/main/res/layout-sw600dp/option_activity.xml @@ -81,10 +81,9 @@ diff --git a/app/src/main/res/layout-sw600dp/story_fragment.xml b/app/src/main/res/layout-sw600dp/story_fragment.xml index 66fb3c73a8c..2480192d109 100644 --- a/app/src/main/res/layout-sw600dp/story_fragment.xml +++ b/app/src/main/res/layout-sw600dp/story_fragment.xml @@ -28,7 +28,7 @@ diff --git a/app/src/main/res/layout/app_language_activity.xml b/app/src/main/res/layout/app_language_activity.xml index 6667ff04848..b4e0066560b 100644 --- a/app/src/main/res/layout/app_language_activity.xml +++ b/app/src/main/res/layout/app_language_activity.xml @@ -18,7 +18,7 @@ diff --git a/app/src/main/res/layout/exploration_activity.xml b/app/src/main/res/layout/exploration_activity.xml index b5291deb7cb..e8f070619a3 100755 --- a/app/src/main/res/layout/exploration_activity.xml +++ b/app/src/main/res/layout/exploration_activity.xml @@ -27,7 +27,7 @@ diff --git a/app/src/main/res/layout/hints_and_solution_fragment.xml b/app/src/main/res/layout/hints_and_solution_fragment.xml index 161860f39a6..5226f9e0d13 100644 --- a/app/src/main/res/layout/hints_and_solution_fragment.xml +++ b/app/src/main/res/layout/hints_and_solution_fragment.xml @@ -27,7 +27,7 @@ diff --git a/app/src/main/res/layout/license_text_viewer_activity.xml b/app/src/main/res/layout/license_text_viewer_activity.xml index 55e6d19e0dc..3c52db29068 100644 --- a/app/src/main/res/layout/license_text_viewer_activity.xml +++ b/app/src/main/res/layout/license_text_viewer_activity.xml @@ -16,7 +16,7 @@ diff --git a/app/src/main/res/layout/pin_password_activity.xml b/app/src/main/res/layout/pin_password_activity.xml index 6440a1d88f5..f12d951ff1c 100644 --- a/app/src/main/res/layout/pin_password_activity.xml +++ b/app/src/main/res/layout/pin_password_activity.xml @@ -31,7 +31,7 @@ diff --git a/app/src/main/res/layout/policies_activity.xml b/app/src/main/res/layout/policies_activity.xml index 71d5e9a5f42..49f40041965 100644 --- a/app/src/main/res/layout/policies_activity.xml +++ b/app/src/main/res/layout/policies_activity.xml @@ -19,6 +19,7 @@ android:layout_height="wrap_content" android:layout_gravity="end" android:background="@color/oppia_primary" + android:minHeight="?attr/actionBarSize" android:theme="@style/Widget.AppCompat.ActionBar" app:navigationContentDescription="@string/navigate_up" app:navigationIcon="@drawable/ic_arrow_back_white_24dp" diff --git a/app/src/main/res/layout/profile_and_device_id_activity.xml b/app/src/main/res/layout/profile_and_device_id_activity.xml index 595f2295597..df95fa70581 100644 --- a/app/src/main/res/layout/profile_and_device_id_activity.xml +++ b/app/src/main/res/layout/profile_and_device_id_activity.xml @@ -19,7 +19,7 @@ @@ -105,10 +105,9 @@ @@ -154,10 +153,9 @@ diff --git a/app/src/main/res/layout/profile_rename_activity.xml b/app/src/main/res/layout/profile_rename_activity.xml index d3936c473c0..b1265610492 100644 --- a/app/src/main/res/layout/profile_rename_activity.xml +++ b/app/src/main/res/layout/profile_rename_activity.xml @@ -20,7 +20,7 @@ @@ -34,10 +33,9 @@