diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b93ec3b..7455b50 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -5,6 +5,7 @@
+
diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/MainActivity.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/MainActivity.kt
index c6ce887..d9f2928 100644
--- a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/MainActivity.kt
+++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/MainActivity.kt
@@ -1,9 +1,12 @@
package org.unifiedpush.distributor.nextpush.activities
+import android.annotation.SuppressLint
+import android.content.ActivityNotFoundException
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
+import android.net.Uri
import android.os.Bundle
import android.os.PowerManager
import android.provider.Settings
@@ -107,17 +110,33 @@ class MainActivity : AppCompatActivity() {
}
}
+ @SuppressLint("BatteryLife")
private fun showOptimisationWarning() {
val powerManager = getSystemService(Context.POWER_SERVICE) as PowerManager
if (!powerManager.isIgnoringBatteryOptimizations(packageName)) {
- findViewById(R.id.card_battery_optimization).isGone = false
- findViewById