chore: remove optionalality parameter
This commit is contained in:
parent
506b6dd213
commit
72957c45e5
1 changed files with 2 additions and 2 deletions
|
@ -41,9 +41,9 @@ class QuickSnoozeActivity : DaggerActivity() {
|
|||
finish()
|
||||
}
|
||||
|
||||
private fun isPackageExisted(targetPackage: String?): Boolean {
|
||||
private fun isPackageExisted(targetPackage: String): Boolean {
|
||||
try {
|
||||
packageManager.getPackageInfo(targetPackage!!, PackageManager.GET_META_DATA)
|
||||
packageManager.getPackageInfo(targetPackage, PackageManager.GET_META_DATA)
|
||||
} catch (e: PackageManager.NameNotFoundException) {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue