Commit 6ad9c6fe authored by Matthew Finkel's avatar Matthew Finkel Committed by Pier Angelo Vendrame
Browse files

[android] Modify UI/UX

Bug 40015: Modify Home menu

Bug 40016: Hide unwanted Settings

Bug 40016: Modify Default toolbar menu

Bug 40016: Add Donate settings button

Bug 40016: Move Allow Screenshots under Advanced

Bug 40016: Don't install WebCompat webext

Bug 40016: Don't onboard Search Suggestions

Bug 40094: Do not use MasterPasswordTipProvider in HomeFragment

Bug 40095: Hide "Sign in to sync" in bookmarks

Bug 40031: Hide Mozilla-specific items on About page

Bug 40063: Do not sort search engines alphabetically

Bug 40141: Hide EME site permission

Bug 40166: Hide "Normal" tab (again) and Sync tab in TabTray

Bug 40167: Hide "Save to Collection" in menu

Bug 40172: Find the Quit button

Bug 40186: Hide Credit Cards in Settings

Bug 40198: Spoof English toggle now overlaps with locale list
parent afc12de0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class SessionAutocompleteProvider(

        val tabUrl = store.state.tabs
            .firstOrNull {
                !it.content.private && doesUrlStartsWithText(it.content.url, query)
                /* !it.content.private && */ doesUrlStartsWithText(it.content.url, query)
            }
            ?.content?.url
            ?: return null
+2 −2
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class SessionSuggestionProvider(

        val suggestions = mutableListOf<AwesomeBar.Suggestion>()
        val iconRequests: List<Deferred<Icon>?> = distinctTabs.map {
            icons?.loadIcon(IconRequest(url = it.content.url, waitOnNetworkLoad = false))
            icons?.loadIcon(IconRequest(url = it.content.url, isPrivate = it.content.private, waitOnNetworkLoad = false))
        }

        val searchWords = searchText.split(" ")
@@ -62,7 +62,7 @@ class SessionSuggestionProvider(
            if (
                resultsUriFilter?.invoke(result.content.url.toUri()) != false &&
                searchWords.all { result.contains(it) } &&
                !result.content.private &&
                // !result.content.private &&
                shouldIncludeSelectedTab(state, result)
            ) {
                suggestions.add(
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ class BrowserFragment : BaseBrowserFragment(), UserInteractionHandler {
            view = view,
        )

        if (context.settings().shouldShowOpenInAppCfr) {
        if (false) { // context.settings().shouldShowOpenInAppCfr
            openInAppOnboardingObserver.set(
                feature = OpenInAppOnboardingObserver(
                    context = context,
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class OpenInAppOnboardingObserver(
                        currentUrl = tab.content.url
                    } else {
                        // Loading state has changed
                        maybeShowOpenInAppBanner(tab.content.url, tab.content.loading)
//                      maybeShowOpenInAppBanner(tab.content.url, tab.content.loading)
                    }
                }
        }
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class MenuNavigationMiddleware(
                )

                is MenuAction.Navigate.ReleaseNotes -> openToBrowser(
                    BrowserNavigationParams(url = SupportUtils.WHATS_NEW_URL),
                    BrowserNavigationParams(url = SupportUtils.getTorWhatsNewUrl()),
                )

                is MenuAction.Navigate.Tools -> navHostController.navigate(route = TOOLS_MENU_ROUTE)
Loading