2017-01-24 14:19:28 +08:00
|
|
|
package com.topjohnwu.magisk.superuser;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
2017-02-07 02:01:32 +08:00
|
|
|
import com.topjohnwu.magisk.components.Activity;
|
2017-01-28 06:13:07 +08:00
|
|
|
|
2017-02-07 02:01:32 +08:00
|
|
|
public class RequestActivity extends Activity {
|
2017-01-24 14:19:28 +08:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
Intent intent = getIntent();
|
|
|
|
if (intent == null) {
|
|
|
|
finish();
|
|
|
|
return;
|
|
|
|
}
|
2017-02-01 23:54:32 +08:00
|
|
|
|
2017-02-17 08:51:51 +08:00
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).setClass(this, SuRequestActivity.class);
|
2017-01-24 14:19:28 +08:00
|
|
|
startActivity(intent);
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
}
|