Skip to content

Commit

Permalink
Fix problem where app crashes after the theme is changed (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester authored Aug 4, 2020
1 parent 797526e commit 7b2e597
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_pr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: app
path: app/build/outputs/apk/debug/com.jkuester.unlauncher.debug.apk
path: app/build/outputs/apk/debug/com.jkuester.unlauncher.apk
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ dependencies {
// Arch Components
implementation("androidx.core:core-ktx:1.5.0-alpha01")
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
implementation("android.arch.navigation:navigation-fragment:1.0.0")
implementation("androidx.navigation:navigation-fragment-ktx:2.2.0")
implementation("androidx.room:room-runtime:2.2.5")
implementation("androidx.lifecycle:lifecycle-common-java8:2.2.0")
kapt("androidx.room:room-compiler:2.2.5")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.sduduzog.slimlauncher.ui.options

import android.content.ComponentName
import android.content.Intent
import androidx.navigation.fragment.NavHostFragment
import com.sduduzog.slimlauncher.data.model.App

class OpenAppsFragment : AddAppFragment() {
Expand All @@ -20,6 +21,6 @@ class OpenAppsFragment : AddAppFragment() {
}
} catch (e: Exception) {
}
activity?.supportFragmentManager?.popBackStack();
NavHostFragment.findNavController(this).popBackStack();
}
}

0 comments on commit 7b2e597

Please sign in to comment.