diff --git a/app/src/main/java/de/jg_cody/Teraplex/ui/home/HomeFragment.java b/app/src/main/java/de/jg_cody/Teraplex/ui/home/HomeFragment.java
index 7bdeb5d..85c8790 100644
--- a/app/src/main/java/de/jg_cody/Teraplex/ui/home/HomeFragment.java
+++ b/app/src/main/java/de/jg_cody/Teraplex/ui/home/HomeFragment.java
@@ -7,7 +7,6 @@ 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.os.Vibrator;
import android.util.Base64;
@@ -21,7 +20,6 @@ import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
-import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
@@ -29,7 +27,6 @@ import java.util.Objects;
import de.jg_cody.Teraplex.MainActivity;
import de.jg_cody.Teraplex.R;
-import de.jg_cody.Teraplex.SSH_connection;
public class HomeFragment extends Fragment {
@@ -146,56 +143,7 @@ public class HomeFragment extends Fragment {
requireActivity().finish();
}
});
- wlan_aus_Button = (Button) root.findViewById(R.id.wlan_aus);
- wlan_aus_Button.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- try {
- Toast.makeText(getContext(), "WLAN wird ausgeschaltet...", Toast.LENGTH_SHORT).show();
- SSH_connection.executeRemoteCommand(ip, user, password, "service hostapd stop");
- } catch (Exception ignored) {
- }
- }
- });
- wlan_an_Button = (Button) root.findViewById(R.id.wlan_an);
- wlan_an_Button.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
-
- try {
- Toast.makeText(getContext(), "WLAN wird eingeschaltet...", Toast.LENGTH_SHORT).show();
- SSH_connection.executeRemoteCommand(ip, user, password, "service hostapd start");
- } catch (Exception ignored) {
- }
- }
- });
- kodiaus = (Button) root.findViewById(R.id.kodiaus);
- kodiaus.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
-
- try {
- Toast.makeText(getContext(), "KODI wird ausgeschaltet...", Toast.LENGTH_SHORT).show();
- SSH_connection.executeRemoteCommand(ip, user, password, "sudo /root/raspberry-remote/send 11111 3 0");
- } catch (Exception ignored) {
- }
- }
-
- });
- kodian = (Button) root.findViewById(R.id.kodian);
- kodian.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
-
- try {
- Toast.makeText(getContext(), "KODI wird angeschaltet...", Toast.LENGTH_SHORT).show();
- SSH_connection.executeRemoteCommand(ip, user, password, "sudo /root/raspberry-remote/send 11111 3 1");
- } catch (Exception ignored) {
- }
- }
-
- });
return root;
}
}
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 18684fa..55ffca5 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -41,28 +41,11 @@
app:layout_constraintStart_toStartOf="@+id/text_home"
app:layout_constraintTop_toTopOf="@+id/text_home" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/raw/intro.mp4 b/app/src/main/res/raw/intro.mp4
index 11b2241..9dfeb43 100644
Binary files a/app/src/main/res/raw/intro.mp4 and b/app/src/main/res/raw/intro.mp4 differ