This commit is contained in:
lucky 2022-01-07 04:51:24 +03:00
parent 8691aa4d13
commit 8b76258cf7
1 changed files with 2 additions and 3 deletions

View File

@ -7,8 +7,6 @@ import androidx.appcompat.app.AlertDialog
import info.guardianproject.panic.PanicResponder
class PanicConnectionActivity : MainActivity() {
private val pm by lazy { packageManager }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (PanicResponder.checkForDisconnectIntent(this)) {
@ -27,7 +25,8 @@ class PanicConnectionActivity : MainActivity() {
val packageName = callingActivity?.packageName
if (packageName != null) {
try {
app = pm.getApplicationLabel(pm.getApplicationInfo(packageName, 0))
app = packageManager
.getApplicationLabel(packageManager.getApplicationInfo(packageName, 0))
} catch (exc: PackageManager.NameNotFoundException) {}
}