Magisk/app/src/main/java/com/topjohnwu/magisk/SplashActivity.java

25 lines
653 B
Java
Raw Normal View History

package com.topjohnwu.magisk;
import android.content.Intent;
import android.os.Bundle;
2017-02-07 02:01:32 +08:00
import com.topjohnwu.magisk.components.Activity;
2017-02-07 07:32:40 +08:00
2017-08-30 02:28:24 +08:00
public class SplashActivity extends Activity {
2016-10-31 11:13:48 +08:00
@Override
protected void onCreate(Bundle savedInstanceState) {
2016-09-26 13:16:11 -05:00
super.onCreate(savedInstanceState);
2017-09-03 15:35:14 +08:00
getMagiskManager().startup();
2017-07-20 02:54:34 +08:00
Intent intent = new Intent(this, MainActivity.class);
2017-05-23 16:51:23 +08:00
String section = getIntent().getStringExtra(MagiskManager.INTENT_SECTION);
if (section != null) {
intent.putExtra(MagiskManager.INTENT_SECTION, section);
}
startActivity(intent);
finish();
}
}