More code cleanups
This commit is contained in:
@ -121,8 +121,6 @@ class MainActivity : AppCompatActivity() {
|
||||
BaresipService.callActionUri = URLDecoder.decode(intent.data.toString(), "UTF-8")
|
||||
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_IGNORE_CHEEK_PRESSES)
|
||||
if (Utils.darkTheme())
|
||||
window.setBackgroundDrawableResource(R.color.colorDark)
|
||||
|
||||
setContentView(binding.root)
|
||||
|
||||
|
||||
@ -663,10 +663,6 @@ object Utils {
|
||||
BaresipService.activities.add(0, activity)
|
||||
}
|
||||
|
||||
fun darkTheme(): Boolean {
|
||||
return AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
fun setShowWhenLocked(activity: Activity, show: Boolean) {
|
||||
when {
|
||||
|
||||
Reference in New Issue
Block a user