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

Commit dd319c4a authored by Michael Wright's avatar Michael Wright
Browse files

Clean up SysUI Kotlin warnings

Bug: 177652618
Test: Compiles
Change-Id: Ic2b318e40f93184ae4a09eb0984488603fbb9ece
parent f3da6a28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ public class NekoControlsService : ControlsProviderService(), PrefState.PrefsLis
    private val controls = HashMap<String, Control>()
    private val publishers = ArrayList<UglyPublisher>()
    private val rng = Random()
    private val metricsLogger = MetricsLogger()

    private var lastToyIcon: Icon? = null

@@ -184,7 +185,6 @@ public class NekoControlsService : ControlsProviderService(), PrefState.PrefsLis
        return getPendingIntent()
    }


    override fun performControlAction(
        controlId: String,
        action: ControlAction,
@@ -196,7 +196,7 @@ public class NekoControlsService : ControlsProviderService(), PrefState.PrefsLis
                controls[CONTROL_ID_FOOD] = makeFoodBowlControl(true)
                Log.v(TAG, "Bowl refilled. (Registering job.)")
                NekoService.registerJob(this, FOOD_SPAWN_CAT_DELAY_MINS)
                MetricsLogger.histogram(this, "egg_neko_offered_food", 11)
                metricsLogger.histogram("egg_neko_offered_food", 11)
                prefs.foodState = 11
            }
            CONTROL_ID_TOY -> {
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ class ToolbarView : FrameLayout {
    ) : super(context, attrs, defStyle) {
    }

    @Suppress("DEPRECATION")
    override fun onApplyWindowInsets(insets: WindowInsets?): WindowInsets {
        var lp = layoutParams as FrameLayout.LayoutParams?
        if (lp != null && insets != null) {
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ class QuaresActivity : Activity() {
    private lateinit var label: Button
    private lateinit var grid: GridLayout

    @Suppress("DEPRECATION")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)