From e0ff6f8dd67a96a01f2467798478bd57820f1a79 Mon Sep 17 00:00:00 2001 From: Chaohui Wang Date: Sat, 30 Apr 2022 13:05:41 +0800 Subject: [PATCH] Fix Wi-Fi "Network usage" and "Privacy" drop down Currently, these are implemented with DropDownPreference, which keeps disappearing after opening. This is because this page is special, many other preferences on this page auto refreshed every some seconds, causing the container RecyclerView to re-render (and a scrollbar is displayed when re-render happens). This re-renders cause the drop downs to auto dismiss. Use ListPreference instead can solve this issue, because DropDownPreference is extended from ListPreference, this is simple change. Fix: 209799515 Test: manual Change-Id: Ib098922c39d9d6c56d645f12f5884489ea6688be --- res/xml/wifi_network_details_fragment2.xml | 4 ++-- .../WifiMeteredPreferenceController2.java | 16 ++++++++-------- .../WifiPrivacyPreferenceController2.java | 19 +++++++++---------- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/res/xml/wifi_network_details_fragment2.xml b/res/xml/wifi_network_details_fragment2.xml index 1c4fe9147a3..eb9add14f66 100644 --- a/res/xml/wifi_network_details_fragment2.xml +++ b/res/xml/wifi_network_details_fragment2.xml @@ -58,14 +58,14 @@ android:title="@string/wifi_security" android:selectable="false"/> - -