[tbb-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.0-1] 2 commits: fixup! Modify UI/UX

Dan Ballard (@dan) git at gitlab.torproject.org
Fri Sep 22 00:26:54 UTC 2023



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/8456bbb8e5a01cca8822a01fd4049dd1b4320b53...6a381e881fb50b23f5d12403c0a210c1c836d958

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/compare/8456bbb8e5a01cca8822a01fd4049dd1b4320b53...6a381e881fb50b23f5d12403c0a210c1c836d958
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230922/ec17b191/attachment-0001.htm>


More information about the tbb-commits mailing list