Commit 1e76f739 authored by Geoffrey Métais's avatar Geoffrey Métais

Do not pass PID as Intent extra

parent 0484d7b0
......@@ -48,7 +48,7 @@ public class NativeCrashActivity extends Activity {
mRestartButton.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View v) {
android.os.Process.killProcess(getIntent().getExtras().getInt("PID"));
android.os.Process.killProcess(android.os.Process.myPid());
Intent i = new Intent(NativeCrashActivity.this, StartActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
......
......@@ -118,7 +118,6 @@ public class VLCInstance {
public void onNativeCrash() {
Intent i = new Intent(context, NativeCrashActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.putExtra("PID", android.os.Process.myPid());
context.startActivity(i);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment