diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7f9fb1b30..0ce7872b3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import com.google.samples.apps.nowinandroid.FlavorDimension import com.google.samples.apps.nowinandroid.Flavor +import com.google.samples.apps.nowinandroid.FlavorDimension plugins { id("nowinandroid.android.application") @@ -115,9 +115,9 @@ dependencies { implementation(libs.androidx.activity.compose) implementation(libs.androidx.appcompat) implementation(libs.androidx.core.ktx) + implementation(libs.androidx.core.splashscreen) implementation(libs.androidx.compose.material3.windowSizeClass) implementation(libs.androidx.window.manager) - implementation(libs.material3) implementation(libs.androidx.profileinstaller) implementation(libs.coil.kt) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f21692f5f..821bc605e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -27,7 +27,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.Nia"> + android:theme="@style/Theme.Nia.Splash"> override fun onCreate(savedInstanceState: Bundle?) { + installSplashScreen() super.onCreate(savedInstanceState) // Turn off the decor fitting system windows, which allows us to handle insets, diff --git a/app/src/main/res/drawable/ic_splash.xml b/app/src/main/res/drawable/ic_splash.xml new file mode 100644 index 000000000..291d88677 --- /dev/null +++ b/app/src/main/res/drawable/ic_splash.xml @@ -0,0 +1,34 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 78ed557f4..767663342 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -14,13 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. --> - + - - + + diff --git a/app/src/main/res/values-v23/themes.xml b/app/src/main/res/values-v23/themes.xml index 2a13f9c35..b637b1413 100644 --- a/app/src/main/res/values-v23/themes.xml +++ b/app/src/main/res/values-v23/themes.xml @@ -16,8 +16,7 @@ --> - diff --git a/app/src/main/res/values-v27/themes.xml b/app/src/main/res/values-v27/themes.xml index b322aee6b..969e51914 100644 --- a/app/src/main/res/values-v27/themes.xml +++ b/app/src/main/res/values-v27/themes.xml @@ -16,10 +16,8 @@ --> - diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 9ace165b5..82456f53a 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -14,29 +14,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + + + - - - - + + - -