[Android] Start the right activity after a crash
Geoffrey Métais
git at videolan.org
Fri Feb 12 11:31:35 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 12 10:47:39 2016 +0100| [8fe3e7bbb07bbfd26573f86978a3dc4382315e98] | committer: Geoffrey Métais
Start the right activity after a crash
> https://code.videolan.org/videolan/vlc-android/commit/8fe3e7bbb07bbfd26573f86978a3dc4382315e98
---
vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java b/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
index cf59c62..5f09f29 100644
--- a/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
@@ -11,6 +11,7 @@ import android.widget.Button;
import android.widget.TextView;
import org.videolan.vlc.R;
+import org.videolan.vlc.StartActivity;
import org.videolan.vlc.util.Logcat;
import org.videolan.vlc.util.Util;
@@ -48,7 +49,7 @@ public class NativeCrashActivity extends Activity {
@Override
public void onClick(View v) {
android.os.Process.killProcess(getIntent().getExtras().getInt("PID"));
- Intent i = new Intent(NativeCrashActivity.this, MainActivity.class);
+ Intent i = new Intent(NativeCrashActivity.this, StartActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
finish();
More information about the Android
mailing list