For #225 - Adds completion snackbar

nightly-build-test
Jeff Boek 5 years ago
parent eda70ab74c
commit 301984733a

@ -27,6 +27,7 @@ import mozilla.components.browser.session.SessionManager
import mozilla.components.concept.engine.Engine
import mozilla.components.feature.tab.collections.TabCollection
import org.mozilla.fenix.R
import org.mozilla.fenix.components.FenixSnackbar
import org.mozilla.fenix.ext.requireComponents
import kotlin.coroutines.CoroutineContext
@ -164,6 +165,10 @@ class DeleteBrowsingDataFragment : Fragment(), CoroutineScope {
updateTabCount()
updateHistoryCount()
updateCollectionsCount()
FenixSnackbar.make(view!!, FenixSnackbar.LENGTH_SHORT)
.setText(resources.getString(R.string.preferences_delete_browsing_data_snackbar))
.show()
}
private fun updateDeleteButton() {

@ -598,6 +598,8 @@
<string name="preferences_delete_browsing_data_prompt_cancel">Dont allow</string>
<!-- Text for the allow button for the data deletion dialog -->
<string name="preferences_delete_browsing_data_prompt_allow">Allow</string>
<!-- Text for the snackbar confirmation that the data was deleted -->
<string name="preferences_delete_browsing_data_snackbar">Browsing data deleted</string>
<!-- Onboarding -->
<!-- Text for onboarding welcome message

Loading…
Cancel
Save