Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
akliuxingyuan committed Aug 7, 2024
1 parent 7926904 commit f7adfd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
logger.info("Resumed AddonsManagementFragment")

super.onResume()
showToolbar(getString(R.string.preferences_addons))
showToolbar(getString(R.string.preferences_extensions))
view?.hideKeyboard()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import mozilla.components.feature.downloads.AbstractFetchDownloadService
import mozilla.components.feature.downloads.toMegabyteOrKilobyteString
import org.mozilla.fenix.R
import org.mozilla.fenix.databinding.DownloadDialogLayoutBinding
import org.mozilla.fenix.ext.settings

/**
* [DynamicDownloadDialog] is used to show a view in the current tab to the user, triggered when
Expand All @@ -31,6 +32,9 @@ class DynamicDownloadDialog(
private val bottomToolbarHeight: Int,
private val onDismiss: () -> Unit,
) {

private val settings = context.settings()

init {
setupDownloadDialog()
}
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/java/org/mozilla/fenix/utils/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2068,15 +2068,6 @@ class Settings(private val appContext: Context) : PreferencesHolder {
default = true,
)

/**
* Indicates if the user is shown new redesigned Toolbar UI.
*/
var enableRedesignToolbar by lazyFeatureFlagPreference(
key = appContext.getPreferenceKey(R.string.pref_key_toolbar_use_redesign),
default = { FeatureFlags.completeToolbarRedesignEnabled },
featureFlag = FeatureFlags.completeToolbarRedesignEnabled,
)

/**
* Indicates if the feature to close synced tabs is enabled.
*/
Expand Down

0 comments on commit f7adfd2

Please sign in to comment.