diff --git a/app/src/main/java/org/mozilla/fenix/settings/DeleteBrowsingDataFragment.kt b/app/src/main/java/org/mozilla/fenix/settings/DeleteBrowsingDataFragment.kt
index 58f6130ed1..f30b734bcd 100644
--- a/app/src/main/java/org/mozilla/fenix/settings/DeleteBrowsingDataFragment.kt
+++ b/app/src/main/java/org/mozilla/fenix/settings/DeleteBrowsingDataFragment.kt
@@ -5,6 +5,7 @@
package org.mozilla.fenix.settings
import android.os.Bundle
+import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@@ -82,10 +83,16 @@ class DeleteBrowsingDataFragment : Fragment(), CoroutineScope {
updateTabCount()
updateHistoryCount()
updateCollectionsCount()
+ updateDeleteButton()
}
private fun updateDeleteButton() {
+ view?.delete_data?.isEnabled =
+ view!!.open_tabs_item!!.isChecked
+ || view!!.browsing_data_item!!.isChecked
+ || view!!.collections_item!!.isChecked
+ Log.e("wat", view?.delete_data?.isEnabled.toString())
}
private fun updateTabCount() {
diff --git a/app/src/main/res/layout/fragment_delete_browsing_data.xml b/app/src/main/res/layout/fragment_delete_browsing_data.xml
index 7969281b8c..6b50b98c93 100644
--- a/app/src/main/res/layout/fragment_delete_browsing_data.xml
+++ b/app/src/main/res/layout/fragment_delete_browsing_data.xml
@@ -45,5 +45,18 @@
app:deleteBrowsingDataItemIcon="@drawable/ic_collections_circle_background"
app:deleteBrowsingDataItemTitle="@string/preferences_delete_browsing_data_collections_title"
app:deleteBrowsingDataItemSubtitle="@string/preferences_delete_browsing_data_collections_subtitle" />
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5c4bdd7160..3123398574 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -579,4 +579,6 @@
%d collections
+
+ Delete browsing data