mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-14 02:19:36 +00:00
24 lines
610 B
Java
24 lines
610 B
Java
![]() |
package com.topjohnwu.magisk.superuser;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.support.v7.app.AppCompatActivity;
|
||
|
|
||
|
public class RequestActivity extends AppCompatActivity {
|
||
|
|
||
|
@Override
|
||
|
protected void onCreate(Bundle savedInstanceState) {
|
||
|
super.onCreate(savedInstanceState);
|
||
|
|
||
|
Intent intent = getIntent();
|
||
|
if (intent == null) {
|
||
|
finish();
|
||
|
return;
|
||
|
}
|
||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||
|
intent.setClass(this, SuRequestActivity.class);
|
||
|
startActivity(intent);
|
||
|
finish();
|
||
|
}
|
||
|
}
|