diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 692739b..1028488 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -22,11 +22,8 @@ android:enabled="true" android:exported="false"/> - + diff --git a/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java b/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java index 8224249..ebfe3f2 100644 --- a/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java +++ b/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java @@ -3,6 +3,7 @@ package ch.mathieubroillet.jarvis.android; import android.app.KeyguardManager; import android.content.Context; import android.os.Bundle; +import android.view.View; import android.view.WindowManager; import androidx.appcompat.app.AppCompatActivity; @@ -30,4 +31,8 @@ public class ListeningActivity extends AppCompatActivity { setContentView(R.layout.activity_listening); } + + public void quit(View view) { + finish(); + } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_listening.xml b/app/src/main/res/layout/activity_listening.xml index 52810c9..b5cf8fc 100644 --- a/app/src/main/res/layout/activity_listening.xml +++ b/app/src/main/res/layout/activity_listening.xml @@ -3,13 +3,29 @@ + + +