LY
LY

``` val am = requireContext().getSystemService() if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { if (am?.canScheduleExactAlarms() == false) { Intent().also { intent -> intent.action = Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM context.startActivity(intent) } } else { am?.setExact( AlarmManager.ELAPSED_REALTIME_WAKEUP, nextSleepTimerElapsedTime,...
code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt
https://github.com/yingapp/RetroMusicPlayer/blob/dev/app/src/main/java/code/name/monkey/retromusic/dialogs/SleepTimerDialog.kt