From 2043fc7aee44ee53457e7bad2fcd095d85fcd3c5 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 16 Oct 2021 09:40:33 +0200 Subject: [PATCH] Renamed Main to MainActivity --- app/src/main/AndroidManifest.xml | 2 +- .../jarvis/android/{Main.java => MainActivity.java} | 2 +- app/src/main/res/layout/activity_main.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/src/main/java/ch/mathieubroillet/jarvis/android/{Main.java => MainActivity.java} (96%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1028488..07e5ff1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -25,7 +25,7 @@ - diff --git a/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java b/app/src/main/java/ch/mathieubroillet/jarvis/android/MainActivity.java similarity index 96% rename from app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java rename to app/src/main/java/ch/mathieubroillet/jarvis/android/MainActivity.java index 56c09ba..f3ee551 100644 --- a/app/src/main/java/ch/mathieubroillet/jarvis/android/Main.java +++ b/app/src/main/java/ch/mathieubroillet/jarvis/android/MainActivity.java @@ -13,7 +13,7 @@ import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; -public class Main extends AppCompatActivity { +public class MainActivity extends AppCompatActivity { private boolean hasPermissions() { return ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED; } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index b7e0382..2f90431 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -3,7 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".Main"> + tools:context=".MainActivity">