diff --git a/app/src/main/java/de/jg_cody/Teraplex/ui/Einstellungen/EinstellungenFragment.java b/app/src/main/java/de/jg_cody/Teraplex/ui/Einstellungen/EinstellungenFragment.java
index f9a185b..ad3bbba 100644
--- a/app/src/main/java/de/jg_cody/Teraplex/ui/Einstellungen/EinstellungenFragment.java
+++ b/app/src/main/java/de/jg_cody/Teraplex/ui/Einstellungen/EinstellungenFragment.java
@@ -9,6 +9,7 @@ import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
+import android.media.MediaPlayer;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
@@ -85,7 +86,8 @@ public class EinstellungenFragment extends Fragment {
Reset.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
-
+ MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.alert_error);
+ mp.start();
AlertDialog mDialog = new AlertDialog.Builder(getContext())
.setTitle(R.string.reset_app)
.setMessage(R.string.are_you_sure_to_reset)
diff --git a/app/src/main/java/de/jg_cody/Teraplex/ui/Konsole/KonsoleFragment.java b/app/src/main/java/de/jg_cody/Teraplex/ui/Konsole/KonsoleFragment.java
index 6f449e0..f95aa0e 100644
--- a/app/src/main/java/de/jg_cody/Teraplex/ui/Konsole/KonsoleFragment.java
+++ b/app/src/main/java/de/jg_cody/Teraplex/ui/Konsole/KonsoleFragment.java
@@ -6,6 +6,7 @@ import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
+import android.media.MediaPlayer;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
@@ -79,6 +80,8 @@ public class KonsoleFragment extends Fragment {
reboot_Button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
+ MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.state_change_confirm_up);
+ mp.start();
AlertDialog mDialog = new AlertDialog.Builder(getContext())
.setTitle("SERVER NEUSTARTEN")
.setMessage("BIST DU SICHER?")
@@ -88,6 +91,8 @@ public class KonsoleFragment extends Fragment {
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
try {
+ MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.state_change_confirm_down);
+ mp.start();
Toast.makeText(getContext(), "Reboot wird ausgeführt...", Toast.LENGTH_SHORT).show();
SSH_connection.executeRemoteCommand(ip, user, password, "reboot");
} catch (Exception e) {
@@ -113,7 +118,8 @@ public class KonsoleFragment extends Fragment {
@Override
public void onClick(View v) {
-
+ MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.state_change_confirm_up);
+ mp.start();
AlertDialog mDialog = new AlertDialog.Builder(getContext())
.setTitle("SERVER HERUNTERFAHREN")
.setMessage("BIST DU SICHER?")
@@ -123,6 +129,8 @@ public class KonsoleFragment extends Fragment {
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
try {
+ MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.state_change_confirm_down);
+ mp.start();
Toast.makeText(getContext(), "Server wird heruntergefahren...", Toast.LENGTH_SHORT).show();
SSH_connection.executeRemoteCommand(ip, user, password, "shutdown now");
} catch (Exception e) {
diff --git a/app/src/main/res/layout/fragment_credits.xml b/app/src/main/res/layout/fragment_credits.xml
index 08d7e84..fd5320f 100644
--- a/app/src/main/res/layout/fragment_credits.xml
+++ b/app/src/main/res/layout/fragment_credits.xml
@@ -19,284 +19,293 @@
app:layout_constraintVertical_bias="0.0" />
-
-
-
-
+ android:layout_height="match_parent">
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/raw/alert_error.ogg b/app/src/main/res/raw/alert_error.ogg
new file mode 100644
index 0000000..7573492
Binary files /dev/null and b/app/src/main/res/raw/alert_error.ogg differ
diff --git a/app/src/main/res/raw/alert_ok.ogg b/app/src/main/res/raw/alert_ok.ogg
new file mode 100644
index 0000000..670a0ba
Binary files /dev/null and b/app/src/main/res/raw/alert_ok.ogg differ
diff --git a/app/src/main/res/raw/state_change_confirm_down.ogg b/app/src/main/res/raw/state_change_confirm_down.ogg
new file mode 100644
index 0000000..b2b5d58
Binary files /dev/null and b/app/src/main/res/raw/state_change_confirm_down.ogg differ
diff --git a/app/src/main/res/raw/state_change_confirm_up.ogg b/app/src/main/res/raw/state_change_confirm_up.ogg
new file mode 100644
index 0000000..36dd7e9
Binary files /dev/null and b/app/src/main/res/raw/state_change_confirm_up.ogg differ