From 9097d16cd2564867c9a3d28fad2244361e5be4b6 Mon Sep 17 00:00:00 2001 From: Ghassen Ben Zahra Date: Thu, 8 Aug 2024 09:34:46 +0100 Subject: [PATCH] remove auto start boot receiver (#1255) --- android/app/src/main/AndroidManifest.xml | 15 +-------------- .../src/main/kotlin/com/flyweb/BootReceiver.kt | 16 ---------------- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 android/app/src/main/kotlin/com/flyweb/BootReceiver.kt diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c95ceec43..7864bcb0c 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -17,8 +17,7 @@ - - + - - - - - - - - diff --git a/android/app/src/main/kotlin/com/flyweb/BootReceiver.kt b/android/app/src/main/kotlin/com/flyweb/BootReceiver.kt deleted file mode 100644 index c2c1e723a..000000000 --- a/android/app/src/main/kotlin/com/flyweb/BootReceiver.kt +++ /dev/null @@ -1,16 +0,0 @@ -package com.mawaqit.androidtv - -import android.content.BroadcastReceiver -import android.content.Context; -import android.content.Intent; - -class BootReceiver: BroadcastReceiver() { - override fun onReceive(context: Context, intent: Intent) { - if (intent.action == Intent.ACTION_BOOT_COMPLETED) { - val i = Intent(context, MainActivity::class.java) - i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - i.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) - context.startActivity(i) - } - } -} \ No newline at end of file