From 4d1d8447b4f2b693253efa2871f2080afba5c343 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 4 Apr 2018 21:06:48 +0200 Subject: [PATCH] show the dialog about removing launcher just once --- .../applauncher/adapters/LaunchersAdapter.kt | 12 +++++++++++- .../simplemobiletools/applauncher/helpers/Config.kt | 4 ++++ .../applauncher/helpers/Constants.kt | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersAdapter.kt index 56379f9..118567b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersAdapter.kt @@ -6,6 +6,7 @@ import android.view.ViewGroup import com.simplemobiletools.applauncher.R import com.simplemobiletools.applauncher.activities.SimpleActivity import com.simplemobiletools.applauncher.dialogs.EditDialog +import com.simplemobiletools.applauncher.extensions.config import com.simplemobiletools.applauncher.extensions.dbHelper import com.simplemobiletools.applauncher.models.AppLauncher import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter @@ -55,7 +56,7 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList showEditDialog() - R.id.cab_remove -> askConfirmRemove() + R.id.cab_remove -> tryRemoveLauncher() } } @@ -68,8 +69,17 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList