rename RecyclerDialogAdapter to LaunchersDialogAdapter

This commit is contained in:
tibbi 2017-11-30 23:31:45 +01:00
parent c8c277d7d5
commit 45780b9143
2 changed files with 4 additions and 4 deletions

View File

@ -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<AppLauncher>) : RecyclerView.Adapter<RecyclerDialogAdapter.ViewHolder>() {
class LaunchersDialogAdapter(activity: Activity, val launchers: ArrayList<AppLauncher>) : RecyclerView.Adapter<LaunchersDialogAdapter.ViewHolder>() {
private val config = activity.config
private var primaryColor = config.primaryColor
private var itemViews = SparseArray<View>()

View File

@ -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<AppLauncher>, 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
}