mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 09:41:26 +08:00
Optimized language, themes, colors.
Added splashscreen, SplashActivity.
This commit is contained in:
@@ -1,14 +1,24 @@
|
||||
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);
|
||||
|
||||
startActivity(new Intent(getApplicationContext(), MainActivity.class));
|
||||
finish();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user