diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/RecyclerDialogAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersDialogAdapter.kt similarity index 95% rename from app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/RecyclerDialogAdapter.kt rename to app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersDialogAdapter.kt index b3da40b..23bd800 100644 --- a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/RecyclerDialogAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/LaunchersDialogAdapter.kt @@ -15,7 +15,7 @@ import com.simplemobiletools.commons.interfaces.MyAdapterListener import kotlinx.android.synthetic.main.app_launcher_item.view.* import java.util.* -class RecyclerDialogAdapter(activity: Activity, val launchers: List) : RecyclerView.Adapter() { +class LaunchersDialogAdapter(activity: Activity, val launchers: ArrayList) : RecyclerView.Adapter() { private val config = activity.config private var primaryColor = config.primaryColor private var itemViews = SparseArray() diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/dialogs/AddAppLauncherDialog.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/dialogs/AddAppLauncherDialog.kt index f14592c..cbfb050 100644 --- a/app/src/main/kotlin/com/simplemobiletools/applauncher/dialogs/AddAppLauncherDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/dialogs/AddAppLauncherDialog.kt @@ -6,7 +6,7 @@ import android.content.pm.PackageManager import android.support.v7.app.AlertDialog import android.view.ViewGroup import com.simplemobiletools.applauncher.R -import com.simplemobiletools.applauncher.adapters.RecyclerDialogAdapter +import com.simplemobiletools.applauncher.adapters.LaunchersDialogAdapter import com.simplemobiletools.applauncher.extensions.dbHelper import com.simplemobiletools.applauncher.extensions.getLauncherDrawable import com.simplemobiletools.applauncher.extensions.isAPredefinedApp @@ -18,7 +18,7 @@ import java.util.* class AddAppLauncherDialog(val activity: Activity, val displayedLaunchers: ArrayList, val callback: () -> Unit) { private var dialog: AlertDialog private var view = (activity.layoutInflater.inflate(R.layout.dialog_pick_launchers, null) as ViewGroup) - private var adapter: RecyclerDialogAdapter? = null + private var adapter: LaunchersDialogAdapter? = null init { dialog = AlertDialog.Builder(activity) @@ -28,7 +28,7 @@ class AddAppLauncherDialog(val activity: Activity, val displayedLaunchers: Array activity.setupDialogStuff(view, this) Thread({ - adapter = RecyclerDialogAdapter(activity, getNotDisplayedLaunchers()) + adapter = LaunchersDialogAdapter(activity, getNotDisplayedLaunchers()) activity.runOnUiThread { view.pick_launchers_holder.adapter = adapter }