diff options
author | xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> | 2022-05-05 11:50:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 11:50:44 +0200 |
commit | c1c8a7e04cc0872cbdadb512db8698736d92b2bc (patch) | |
tree | db56f7fc178d17507579ad12d3018e63d6fc723e | |
parent | Update MainActivity.java (diff) | |
download | xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar.gz xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar.bz2 xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar.lz xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar.xz xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.tar.zst xManager-c1c8a7e04cc0872cbdadb512db8698736d92b2bc.zip |
-rw-r--r-- | app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java index 0bd1ca4..696e985 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java @@ -31,8 +31,6 @@ import java.util.Timer; import java.util.TimerTask;
import android.content.Intent;
import android.net.Uri;
-import android.app.Activity;
-import android.content.SharedPreferences;
import android.graphics.Typeface;
import com.wuyr.rippleanimation.*;
import com.unity3d.ads.*;
@@ -50,7 +48,6 @@ public class SplashActivity extends AppCompatActivity { private TimerTask Timer;
private Intent Switch_Activity = new Intent();
- private SharedPreferences NAVIGATION_BAR;
@Override
protected void onCreate(Bundle _savedInstanceState) {
@@ -67,7 +64,6 @@ public class SplashActivity extends AppCompatActivity { main_body = findViewById(R.id.main_body);
icon_manager = findViewById(R.id.icon_manager);
title_manager = findViewById(R.id.title_manager);
- NAVIGATION_BAR = getSharedPreferences("NAVIGATION_BAR", Activity.MODE_PRIVATE);
}
private void initializeLogic() {
@@ -103,7 +99,7 @@ public class SplashActivity extends AppCompatActivity { }
else {
if (5 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
- title_manager.setText("Keep Your $10");
+ title_manager.setText("Saving Your $10");
title_manager.setTextSize((int)25);
}
else {
@@ -156,33 +152,6 @@ public class SplashActivity extends AppCompatActivity { public void onBackPressed() {
SketchwareUtil.showMessage(getApplicationContext(), "Can't Go Back");
}
-
- @Override
- public void onResume() {
- super.onResume();
- _Hide_Navigation();
- }
- public void _Hide_Navigation() {
- try {
- if (NAVIGATION_BAR.getString("NAVIGATION", "").equals("1")) {
- getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
-
- }
- else {
- if (NAVIGATION_BAR.getString("NAVIGATION", "").equals("0")) {
- getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
-
- if (Build.VERSION.SDK_INT >= 21) {
- getWindow().setNavigationBarColor(Color.parseColor("#171717"));
- }
-
- }
- }
- } catch (Exception e) {
- }
- }
-
-
public void _Dark_Navigation() {
if (Build.VERSION.SDK_INT >= 21) {
getWindow().setNavigationBarColor(Color.parseColor("#171717"));
|