Clean up SysUI Kotlin warnings
Bug: 177652618 Test: Compiles Change-Id: Ic2b318e40f93184ae4a09eb0984488603fbb9ece
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user