Dan Ballard pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android
Commits: 4df8127b by Dan Ballard at 2023-09-21T17:07:18-07:00 fixup! Modify UI/UX
Bug 42122: fix crash due to bad android deprecation and APIs
- - - - - 6a381e88 by Dan Ballard at 2023-09-21T17:07:18-07:00 fixup! Bug 41878: Add standalone Tor Bootstrap
delete unused import
- - - - -
1 changed file:
- fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt
Changes:
===================================== fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt ===================================== @@ -34,7 +34,6 @@ import androidx.annotation.VisibleForTesting.Companion.PROTECTED import androidx.appcompat.app.ActionBar import androidx.appcompat.widget.Toolbar import androidx.core.app.NotificationManagerCompat -import androidx.core.content.ContentProviderCompat.requireContext import androidx.lifecycle.lifecycleScope import androidx.navigation.NavDestination import androidx.navigation.NavDirections @@ -81,6 +80,7 @@ import mozilla.components.support.utils.BootUtils import mozilla.components.support.utils.ManufacturerCodes import mozilla.components.support.utils.SafeIntent import mozilla.components.support.utils.TorUtils +import mozilla.components.support.utils.ext.getParcelableExtraCompat import mozilla.components.support.utils.toSafeIntent import mozilla.components.support.webextensions.WebExtensionPopupFeature import mozilla.telemetry.glean.private.NoExtras @@ -681,7 +681,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { }
open fun handleNewIntent(intent: Intent) { - val startIntent = intent.getParcelableExtra(TorUtils.TORBROWSER_START_ACTIVITY_PROMPT, PendingIntent::class.java); // getParcelableExtra<PendingIntent>(TorUtils.TORBROWSER_START_ACTIVITY_PROMPT) + val startIntent = intent.getParcelableExtraCompat(TorUtils.TORBROWSER_START_ACTIVITY_PROMPT, PendingIntent::class.java) if (startIntent != null) { if (startIntent.creatorPackage == applicationContext.packageName) { val dialog = getOrCreateDialog()
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/compare/845...
tor-commits@lists.torproject.org