1
0
Fork 0

For #225 - Adds completion snackbar

master
Jeff Boek 2019-05-31 08:43:08 -07:00
parent eda70ab74c
commit 301984733a
2 changed files with 7 additions and 0 deletions

View File

@ -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() {

View File

@ -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