mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: parts: fix NullPointerException
* "this" to get current context needs to be done on overriding method
This commit is contained in:
parent
24ff1bae86
commit
b65bfd3ba3
1 changed files with 3 additions and 2 deletions
|
|
@ -21,10 +21,11 @@ import android.service.quicksettings.TileService
|
||||||
|
|
||||||
// TODO: Add FPS drawables
|
// TODO: Add FPS drawables
|
||||||
class FPSTileService : TileService() {
|
class FPSTileService : TileService() {
|
||||||
private val fpsinfo = Intent(this, FPSInfoService::class.java)
|
private lateinit var fpsinfo : Intent
|
||||||
private var isShowing = false
|
private var isShowing = false
|
||||||
override fun onStartListening() {
|
override fun onStartListening() {
|
||||||
super.onStartListening()
|
super.onStartListening()
|
||||||
|
fpsinfo = Intent(this, FPSInfoService::class.java)
|
||||||
val fpsInfoService = FPSInfoService()
|
val fpsInfoService = FPSInfoService()
|
||||||
isShowing = fpsInfoService.getRunning()
|
isShowing = fpsInfoService.getRunning()
|
||||||
updateTile()
|
updateTile()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue