Skip to content
Snippets Groups Projects
Commit 49db4f27 authored by ohall-m's avatar ohall-m
Browse files

Bug 1891747 - Make Pull To Dismiss Smoother on Android Translations r=android-reviewers,giorga

This patch increases the friction coefficient for pull to dismiss.

Differential Revision: https://phabricator.services.mozilla.com/D207612
parent 5b6673f0
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,9 @@ import org.mozilla.fenix.translations.preferences.downloadlanguages.DownloadLang
import org.mozilla.fenix.translations.preferences.downloadlanguages.DownloadLanguageFileDialogType
import org.mozilla.fenix.translations.preferences.downloadlanguages.DownloadLanguagesFeature
// Friction should be increased, since peek height on this dialog is to fill the screen.
private const val DIALOG_FRICTION = .65f
/**
* The enum is to know what bottom sheet to open.
*/
......@@ -78,6 +81,7 @@ class TranslationsDialogFragment : BottomSheetDialogFragment() {
behavior = BottomSheetBehavior.from(bottomSheet)
behavior?.peekHeight = resources.displayMetrics.heightPixels
behavior?.state = BottomSheetBehavior.STATE_EXPANDED
behavior?.hideFriction = DIALOG_FRICTION
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment