mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 03:41:26 +08:00
32 lines
1006 B
Java
32 lines
1006 B
Java
package com.fatapp.oxygentoolbox;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import androidx.core.splashscreen.SplashScreen;
|
|
|
|
@SuppressLint("CustomSplashScreen")
|
|
public class SplashActivity extends AppCompatActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
// Handle the splash screen transition.
|
|
SplashScreen splashScreen = SplashScreen.installSplashScreen(this);
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_splash);
|
|
new Thread() {
|
|
@Override
|
|
public void run() {
|
|
try {
|
|
sleep(0);
|
|
} catch (InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
startActivity(new Intent(getApplicationContext(), MainActivity.class));
|
|
finish();
|
|
}
|
|
}.start();
|
|
}
|
|
} |