diff --git a/app/build.gradle b/app/build.gradle
index 239839aee..3314c6367 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -95,6 +95,7 @@ dependencies {
implementation 'me.toptas.fancyshowcase:fancyshowcaseview:1.3.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.connectbot:sshlib:2.2.9'
+ implementation "androidx.core:core-splashscreen:1.0.1"
def lifecycle_version = "2.8.6"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 3394a2859..1ef98da48 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -34,11 +34,13 @@
android:theme="@style/MyMaterialTheme.Base"
android:usesCleartextTraffic="true"
tools:replace="android:allowBackup">
+
+ android:screenOrientation="portrait"
+ android:theme="@style/Theme.App.Starting">
@@ -56,9 +58,9 @@
android:theme="@style/Theme.AppCompat"
android:windowSoftInputMode="stateAlwaysVisible|adjustResize" />
-
+
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
1 -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
@@ -84,8 +83,11 @@ class SplashScreenActivity : AppCompatActivity() {
}
}
- private fun fontSize(): Int
- {
+ private fun fontSize(): Int {
return PreferenceManager.getDefaultSharedPreferences(this).getInt("font_size", 18)
}
-}
\ No newline at end of file
+
+ companion object {
+ private const val SPLASH_TIME_OUT = 2000
+ }
+}
diff --git a/app/src/main/res/drawable/splash_screen_image.xml b/app/src/main/res/drawable/splash_screen_image.xml
new file mode 100644
index 000000000..e660e58f0
--- /dev/null
+++ b/app/src/main/res/drawable/splash_screen_image.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_splash_screen.xml b/app/src/main/res/layout/activity_splash_screen.xml
index 056cafcaa..183dcaa18 100644
--- a/app/src/main/res/layout/activity_splash_screen.xml
+++ b/app/src/main/res/layout/activity_splash_screen.xml
@@ -1,32 +1,30 @@
-
+ android:orientation="horizontal"
+ android:theme="@style/AppTheme">
-
-
-
\ No newline at end of file
+ android:textSize="18sp"
+ app:fontFamily="@font/roboto_medium" />
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 36f0c1819..e9b9b6d23 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -1,17 +1,8 @@
-
-
-
-
-
-
-
-
-
-
-