EverTranslator icon indicating copy to clipboard operation
EverTranslator copied to clipboard

Notification is on

Open uomar8 opened this issue 2 years ago • 1 comments

After rebooting device the notification icon is on even though the app isn't on and it's not opened yet

20221018_154839

It will work fine after open the app after reboot

Android 9

uomar8 avatar Oct 18 '22 12:10 uomar8

Thanks for the feedback. I'll check it later!

firemaples avatar Oct 18 '22 14:10 firemaples

i founeded this https://stackoverflow.com/questions/50526153/quick-settings-tile-in-active-state-on-boot-when-active-tile-enabled

but once i add

meta-data android:name="android.service.quicksettings.ACTIVE_TILE" android:value="true"

and

TileService.requestListeningState(this, ComponentName(this, QuickTileService::class.java))

off button change to on and on change to off

it might help to fix the problem

uomar8 avatar Dec 27 '22 10:12 uomar8

Thank you for the survey, I'll check how to fix it.

firemaples avatar Dec 27 '22 12:12 firemaples

I found the problem. The default state of quick tile items is active on Android 9. And I used a MutableSharedFlow without assigning a default value, so it can be corrected after any state changes.

firemaples avatar Dec 28 '22 08:12 firemaples