From 8feb8cee3cbc4f99a1fd76790477d002e8afad8b Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 5 Apr 2022 15:08:01 +0600 Subject: [PATCH] 169-Fix_popup_view_alignment issue: https://gitlab.e.foundation/e/os/backlog/-/issues/169 --- app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java | 6 +++--- app/src/main/res/layout/activity_main.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java b/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java index 1ab04702f..d34ce58b0 100644 --- a/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java +++ b/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java @@ -616,13 +616,13 @@ public class MainUI { layoutParams.addRule(above, 0); layoutParams.addRule(below, 0); layoutParams.addRule(left_of, 0); - layoutParams.addRule(right_of, R.id.popup); + layoutParams.addRule(right_of, R.id.top_bg); layoutParams.addRule(align_parent_top, RelativeLayout.TRUE); layoutParams.addRule(align_parent_bottom, RelativeLayout.TRUE); } else { - layoutParams.addRule(align_right, R.id.popup); + layoutParams.addRule(align_right, R.id.top_bg); layoutParams.addRule(above, 0); - layoutParams.addRule(below, R.id.popup); + layoutParams.addRule(below, R.id.top_bg); layoutParams.addRule(left_of, 0); layoutParams.addRule(right_of, 0); layoutParams.addRule(align_parent_top, 0); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 036ab9b01..092274048 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -595,8 +595,8 @@ android:id="@+id/popup_container" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@+id/popup" - android:layout_alignRight="@+id/popup" + android:layout_below="@+id/top_bg" + android:layout_alignRight="@+id/top_bg" android:fadeScrollbars="false" />