From 3caee5d4222a9d0ab2f5d96a30a0e89b63d29d6b Mon Sep 17 00:00:00 2001 From: Mathieu Date: Thu, 14 Oct 2021 22:03:17 +0200 Subject: [PATCH] Fixed service not starting after asking for permissions --- .../main/java/ch/mathieubroillet/jarvis/android/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java b/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java index 69602d7..56c09ba 100644 --- a/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java +++ b/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java @@ -42,11 +42,11 @@ public class Main extends AppCompatActivity { setContentView(R.layout.activity_main); if (!hasPermissions()) { - Toast.makeText(this, "No pemerssions, accept all permissions and restart app.", Toast.LENGTH_SHORT).show(); + Toast.makeText(this, "Missing permissions, accept all permissions and restart app.", Toast.LENGTH_SHORT).show(); requestPermissions(); - } else { - startService(); } + + startService(); } }