Renamed Main to MainActivity

This commit is contained in:
Mathieu 2021-10-16 09:40:33 +02:00
parent d1e7eb0cb3
commit 2043fc7aee
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
<activity android:name=".ListeningActivity" <activity android:name=".ListeningActivity"
android:theme="@style/Theme.Transparent" /> android:theme="@style/Theme.Transparent" />
<activity android:name=".Main" <activity android:name=".MainActivity"
android:exported="false"> android:exported="false">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@ -13,7 +13,7 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
public class Main extends AppCompatActivity { public class MainActivity extends AppCompatActivity {
private boolean hasPermissions() { private boolean hasPermissions() {
return ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED; return ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED;
} }

View File

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".Main"> tools:context=".MainActivity">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"