diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-08-19 06:45:00 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-08-19 06:45:00 +0000 |
commit | 30e48fce02426fb2c44a4c8e9d4e7ff5dbdb4d22 (patch) | |
tree | 5b8a1d8fb208fbc335167ad97c4c15fe3cf8dea8 /app/src/main/java/foundation/e | |
parent | 8884e0423a4e50406b221ee07321a8560bb7420c (diff) | |
parent | 53d11f837acb9a15ae41d257f2afc32c76db3916 (diff) |
Merge branch '5444-fix_access_trackers_system_app' into 'main'
5444 fix app trackers screen doesn't open for system dummy app.
See merge request e/os/advanced-privacy!77
Diffstat (limited to 'app/src/main/java/foundation/e')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt index 75a9c4a..3d8f809 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt @@ -24,7 +24,6 @@ import android.view.View import android.widget.Toast import androidx.core.os.bundleOf import androidx.core.view.isVisible -import androidx.fragment.app.commit import androidx.fragment.app.viewModels import androidx.lifecycle.Lifecycle import androidx.lifecycle.lifecycleScope @@ -69,12 +68,9 @@ class AppTrackersFragment : NavToolbarFragment(R.layout.apptrackers_fragment) { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - val appUid = requireArguments().getInt(PARAM_APP_UID, -1) - if (appUid == -1) { - activity?.supportFragmentManager?.commit(allowStateLoss = true) { - remove(this@AppTrackersFragment) - } - return + if (arguments == null || + requireArguments().getInt(PARAM_APP_UID, Int.MIN_VALUE) == Int.MIN_VALUE) { + activity?.supportFragmentManager?.popBackStack() } } |