Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bea4b33 authored by Haijie Hong's avatar Haijie Hong
Browse files

Remove bottom preference if expressive theme enabled

Test: local tested
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Bug: 404704940
Change-Id: I42808de5d058f875cdb76bed443910f66f76df95
parent 99d0b5a4
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -556,6 +556,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
            }
        }

        if (!Flags.enableBluetoothSettingsExpressiveDesign()) {
            Preference preference = mProfilesContainer.findPreference(KEY_BOTTOM_PREFERENCE);
            if (preference == null) {
                preference = new Preference(mContext);
@@ -570,6 +571,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
                preference.setSelectable(false);
                mProfilesContainer.addPreference(preference);
            }
        }

        Set<String> additionalInvisibleProfiles = mAdditionalInvisibleProfiles.get();
        HashSet<String> combinedInvisibleProfiles = new HashSet<>(mInvisibleProfiles);