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

Commit d5d8ca0d authored by Jiaming Cheng's avatar Jiaming Cheng
Browse files

[QSDetailedView] Add the `InternetDetailsContentManager`

Extract the view logic out from the `InternetDialogDelegate` into the
`InternetDetailsContentManager`. This class will later be used by
the non dialog details view.

Also renamed `InternetDetailedViewModel` ->  `InternetDetailsViewModel`
to make the file name consistent with the class name.

Bug:b/377388104
Flag: com.android.systemui.qs_tile_detailed_view
Test: InternetDetailsContentManagerTest
Change-Id: I1e4183f7e30f11ecb35c2d48882c58294010f939
parent 6d8ad4db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -285,6 +285,7 @@ filegroup {
        "tests/src/**/systemui/statusbar/phone/KeyguardClockPositionAlgorithmTest.java",
        "tests/src/**/systemui/shared/system/RemoteTransitionTest.java",
        "tests/src/**/systemui/qs/tiles/dialog/InternetDetailsContentControllerTest.java",
        "tests/src/**/systemui/qs/tiles/dialog/InternetDetailsContentManagerTest.kt",
        "tests/src/**/systemui/qs/external/TileLifecycleManagerTest.java",
        "tests/src/**/systemui/ScreenDecorationsTest.java",
        "tests/src/**/systemui/statusbar/policy/BatteryControllerStartableTest.java",
+0 −1
Original line number Diff line number Diff line
@@ -373,7 +373,6 @@ public class InternetDetailsContentController implements AccessPointController.A
        mConnectivityManager.setAirplaneMode(false);
    }

    @VisibleForTesting
    protected int getDefaultDataSubscriptionId() {
        return mSubscriptionManager.getDefaultDataSubscriptionId();
    }
+991 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −0

File moved.

+3 −1
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ import com.android.systemui.accessibility.floatingmenu.AnnotationLinkSpan;
import com.android.systemui.animation.DialogTransitionAnimator;
import com.android.systemui.dagger.qualifiers.Background;
import com.android.systemui.dagger.qualifiers.Main;
import com.android.systemui.qs.flags.QsDetailedView;
import com.android.systemui.res.R;
import com.android.systemui.shade.ShadeDisplayAware;
import com.android.systemui.shade.domain.interactor.ShadeDialogContextInteractor;
@@ -207,7 +208,8 @@ public class InternetDialogDelegateLegacy implements
            KeyguardStateController keyguardStateController,
            SystemUIDialog.Factory systemUIDialogFactory,
            ShadeDialogContextInteractor shadeDialogContextInteractor) {
        // TODO: b/377388104 QsDetailedView.assertInLegacyMode();
        // If `QsDetailedView` is enabled, it should show the details view.
        QsDetailedView.assertInLegacyMode();

        mAboveStatusBar = aboveStatusBar;
        mSystemUIDialogFactory = systemUIDialogFactory;
Loading