diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/activities/MainActivity.kt index cdf8629..27649b8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/applauncher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/activities/MainActivity.kt @@ -7,7 +7,7 @@ import android.view.MenuItem import com.simplemobiletools.applauncher.BuildConfig import com.simplemobiletools.applauncher.R import com.simplemobiletools.applauncher.adapters.LaunchersAdapter -import com.simplemobiletools.applauncher.dialogs.AddAppLauncherDialog +import com.simplemobiletools.applauncher.dialogs.AddLaunchersDialog import com.simplemobiletools.applauncher.dialogs.ChangeSortingDialog import com.simplemobiletools.applauncher.extensions.config import com.simplemobiletools.applauncher.extensions.dbHelper @@ -46,7 +46,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { fab.setOnClickListener { if (allLaunchers != null) { val shownLaunchers = (launchers_grid.adapter as LaunchersAdapter).launchers - AddAppLauncherDialog(this, allLaunchers!!, shownLaunchers) { + AddLaunchersDialog(this, allLaunchers!!, shownLaunchers) { setupLaunchers() } } diff --git a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/AddLaunchersAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/AddLaunchersAdapter.kt index 7ede54d..7dd1d71 100644 --- a/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/AddLaunchersAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/applauncher/adapters/AddLaunchersAdapter.kt @@ -9,7 +9,7 @@ import com.simplemobiletools.applauncher.R import com.simplemobiletools.applauncher.extensions.config import com.simplemobiletools.applauncher.models.AppLauncher import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor -import kotlinx.android.synthetic.main.item_add_app_launcher.view.* +import kotlinx.android.synthetic.main.item_add_launcher.view.* import java.util.* class AddLaunchersAdapter(activity: Activity, val allLaunchers: ArrayList, val shownLaunchers: ArrayList) : @@ -44,7 +44,7 @@ class AddLaunchersAdapter(activity: Activity, val allLaunchers: ArrayList, val shownLaunchers: ArrayList, val callback: () -> Unit ) { - private var view = (activity.layoutInflater.inflate(R.layout.dialog_pick_launchers, null) as ViewGroup) + private var view = (activity.layoutInflater.inflate(R.layout.dialog_add_launchers, null) as ViewGroup) private var adapter: AddLaunchersAdapter? = null init { @@ -27,10 +27,10 @@ class AddAppLauncherDialog( .create().apply { activity.setupDialogStuff(view, this) { adapter = AddLaunchersAdapter(activity, allLaunchers, shownLaunchers) - view.pick_launchers_holder.adapter = adapter + view.add_launchers_holder.adapter = adapter if (activity.areSystemAnimationsEnabled) { - view.pick_launchers_holder.scheduleLayoutAnimation() + view.add_launchers_holder.scheduleLayoutAnimation() } } } diff --git a/app/src/main/res/layout/dialog_pick_launchers.xml b/app/src/main/res/layout/dialog_add_launchers.xml similarity index 91% rename from app/src/main/res/layout/dialog_pick_launchers.xml rename to app/src/main/res/layout/dialog_add_launchers.xml index 2ca0081..845ff95 100644 --- a/app/src/main/res/layout/dialog_pick_launchers.xml +++ b/app/src/main/res/layout/dialog_add_launchers.xml @@ -1,7 +1,7 @@ - + android:textSize="@dimen/normal_text_size" /> diff --git a/app/src/main/res/layout/item_add_app_launcher.xml b/app/src/main/res/layout/item_add_launcher.xml similarity index 100% rename from app/src/main/res/layout/item_add_app_launcher.xml rename to app/src/main/res/layout/item_add_launcher.xml diff --git a/app/src/main/res/layout/item_app_launcher.xml b/app/src/main/res/layout/item_launcher.xml similarity index 100% rename from app/src/main/res/layout/item_app_launcher.xml rename to app/src/main/res/layout/item_launcher.xml