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

Commit 046ad86d authored by Perry Wu's avatar Perry Wu
Browse files

[Settings] Update PIP with new Settings integration

Updates PIP settings to be compatible with new Settings guidelines.

For context we have 2 settings pages PictureInPictureSettings.java
and PictureInPictureDetails.java, both of which inherit from standard
androidx components, so there should not be any other required
changes.

Bug: b/349659719
Flag: EXEMPT refactor
Test: manually enable update and check settings pages
Change-Id: Iafc3cda8cdb2fcdba466755bf537188ee2005dc2
parent 3c0dde88
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ import com.android.settings.applications.AppInfoBase;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settings.widget.EmptyTextSettings;
import com.android.settingslib.search.SearchIndexable;
import com.android.settingslib.widget.AppPreference;

import java.text.Collator;
import java.util.ArrayList;
@@ -160,7 +159,7 @@ public class PictureInPictureSettings extends EmptyTextSettings {
            final String packageName = appInfo.packageName;
            final CharSequence label = appInfo.loadLabel(mPackageManager);

            final Preference pref = new AppPreference(prefContext);
            final Preference pref = new Preference(prefContext);
            pref.setIcon(mIconDrawableFactory.getBadgedIcon(appInfo, userId));
            pref.setTitle(mPackageManager.getUserBadgedLabel(label, user));
            pref.setSummary(PictureInPictureDetails.getPreferenceSummary(prefContext,