From f9954cc4cc115db16302208cf23e5dda4d329cac Mon Sep 17 00:00:00 2001 From: Yogisha Dixit Date: Tue, 16 Mar 2021 14:56:42 +0000 Subject: [PATCH] Fix bug with resize frame disappearing. Currently, if you resize the widget to the top, bottom or right, the resize frame disappears. This is because the AppWidgetResizeFrame code relies on the indices of the child elements to find the drag handles. I updated the code to instead use IDs since that is more robust. Test: manual Bug: 182305670 Change-Id: Iaa9d32c9190fb579101914f03d57bb48dcecb88d --- res/layout/app_widget_resize_frame.xml | 4 ++++ src/com/android/launcher3/AppWidgetResizeFrame.java | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/res/layout/app_widget_resize_frame.xml b/res/layout/app_widget_resize_frame.xml index dfce94669c..2e476df6c9 100644 --- a/res/layout/app_widget_resize_frame.xml +++ b/res/layout/app_widget_resize_frame.xml @@ -34,6 +34,7 @@