Skip to content
Snippets Groups Projects
Commit 8fe3e7bb authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Start the right activity after a crash

parent f2e9d5db
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment