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

Commit ef4c1ef5 authored by Fedor Kudasov's avatar Fedor Kudasov
Browse files

Explicitly express nullness expectations

Bug: 209459024
Test: m SystemUI-core
Change-Id: Ifc72cdab70ef85baad059342751de7cd31fb4e8f
parent 7d8d2726
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ import com.android.systemui.statusbar.policy.KeyguardStateController;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Objects;

/**
 * Runs the day-to-day operations of which tiles should be bound and when.
@@ -178,6 +179,13 @@ public class TileServices extends IQSService.Stub {
                return;
            }
            TileServiceManager service = mServices.get(customTile);
            if (service == null) {
                Log.e(
                        TAG,
                        "No TileServiceManager found in requestListening for tile "
                                + customTile.getTileSpec());
                return;
            }
            if (!service.isActiveTile()) {
                return;
            }
@@ -236,7 +244,7 @@ public class TileServices extends IQSService.Stub {
            verifyCaller(customTile);
            customTile.onDialogShown();
            mHost.forceCollapsePanels();
            mServices.get(customTile).setShowingDialog(true);
            Objects.requireNonNull(mServices.get(customTile)).setShowingDialog(true);
        }
    }

@@ -245,7 +253,7 @@ public class TileServices extends IQSService.Stub {
        CustomTile customTile = getTileForToken(token);
        if (customTile != null) {
            verifyCaller(customTile);
            mServices.get(customTile).setShowingDialog(false);
            Objects.requireNonNull(mServices.get(customTile)).setShowingDialog(false);
            customTile.onDialogHidden();
        }
    }