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

26 lines
682 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-11-06 04:41:23 +08:00
import com.topjohnwu.magisk.utils.Const;
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-11-06 04:41:23 +08:00
String section = getIntent().getStringExtra(Const.Key.OPEN_SECTION);
2017-05-23 16:51:23 +08:00
if (section != null) {
2017-11-06 04:41:23 +08:00
intent.putExtra(Const.Key.OPEN_SECTION, section);
2017-05-23 16:51:23 +08:00
}
startActivity(intent);
finish();
}
}