Skip to content

Commit 8f79a89

Browse files
authored
Remove duplicate call to finish() when clearing data from app shortcut (#339)
1 parent 952e243 commit 8f79a89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserActivity.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ class BrowserActivity : DuckDuckGoActivity() {
125125
if (intent.getBooleanExtra(PERFORM_FIRE_ON_ENTRY_EXTRA, false)) {
126126
viewModel.onClearRequested()
127127
clearPersonalDataAction.clear()
128-
Toast.makeText(applicationContext, R.string.fireDataCleared, Toast.LENGTH_LONG).show()
129-
finish()
130128
return
131129
}
132130

@@ -195,8 +193,8 @@ class BrowserActivity : DuckDuckGoActivity() {
195193

196194
fun launchFire() {
197195
val dialog = FireDialog(context = this, pixel = pixel, clearPersonalDataAction = clearPersonalDataAction)
198-
dialog.clearStarted = {viewModel.onClearRequested()}
199-
dialog.clearComplete = { viewModel.onClearComplete()}
196+
dialog.clearStarted = { viewModel.onClearRequested() }
197+
dialog.clearComplete = { viewModel.onClearComplete() }
200198
dialog.show()
201199
}
202200

0 commit comments

Comments
 (0)