Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Fix: Fix the home screen from not being reloaded if not on home
Browse files Browse the repository at this point in the history
  • Loading branch information
CreativeCodeCat committed May 23, 2024
1 parent 34454ba commit e536fb5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
/pages
/wiki
/app/release
/app/build
/app/debug
diff.*
13 changes: 8 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "app.mlauncher"
minSdk = 23
targetSdk = 34
versionCode = 161
versionName = "1.6.1"
versionCode = 162
versionName = "1.6.2"
}

buildTypes {
Expand Down Expand Up @@ -89,7 +89,7 @@ dependencies {

// Android lifecycle
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.0")

// Navigation
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
Expand All @@ -101,7 +101,7 @@ dependencies {

// Text similarity
implementation("org.apache.commons:commons-text:1.12.0")
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.google.code.gson:gson:2.11.0")

// JETPACK
// Integration with activities
Expand All @@ -120,6 +120,9 @@ dependencies {
implementation("androidx.compose.foundation:foundation:$androidxTestKotlin")
implementation("androidx.biometric:biometric-ktx:1.2.0-alpha05")

//color picker
implementation("net.mm2d.color-chooser:color-chooser:0.7.3")

val acraVersion = "5.11.3"
implementation("ch.acra:acra-core:$acraVersion")
implementation("ch.acra:acra-dialog:$acraVersion")
Expand All @@ -136,7 +139,7 @@ dependencies {
// Needed for createComposeRule, but not createAndroidComposeRule:
debugImplementation("androidx.compose.ui:ui-test-manifest:$androidxTestKotlin")
androidTestImplementation("androidx.navigation:navigation-testing:2.7.7")
debugImplementation("androidx.fragment:fragment-testing:1.7.0")
debugImplementation("androidx.fragment:fragment-testing:1.7.1")
implementation("androidx.test:core-ktx:1.5.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation("androidx.test:runner:1.5.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ class MainActivity : AppCompatActivity() {
super.onUserLeaveHint()
}

override fun onResume() {
backToHomeScreen()
super.onResume()
}

override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
recreate()
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ buildscript {
}

plugins {
id("com.android.application") version "8.4.0" apply false
id("com.android.library") version "8.4.0" apply false
id("com.android.application") version "8.4.1" apply false
id("com.android.library") version "8.4.1" apply false
id("org.jetbrains.kotlin.android") version "1.8.10" apply false
}

Expand Down

0 comments on commit e536fb5

Please sign in to comment.