mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-07 23:38:54 +01:00
some styling
This commit is contained in:
parent
3eb6f8a804
commit
178d453dd6
@ -15,6 +15,7 @@ class AddAppDialog() : DialogFragment() {
|
|||||||
companion object {
|
companion object {
|
||||||
lateinit var launchers: ArrayList<AppLauncher>
|
lateinit var launchers: ArrayList<AppLauncher>
|
||||||
var callback: AddLaunchersInterface? = null
|
var callback: AddLaunchersInterface? = null
|
||||||
|
|
||||||
fun newInstance(cb: AddLaunchersInterface, appLaunchers: ArrayList<AppLauncher>): AddAppDialog {
|
fun newInstance(cb: AddLaunchersInterface, appLaunchers: ArrayList<AppLauncher>): AddAppDialog {
|
||||||
callback = cb
|
callback = cb
|
||||||
launchers = appLaunchers
|
launchers = appLaunchers
|
||||||
@ -27,10 +28,7 @@ class AddAppDialog() : DialogFragment() {
|
|||||||
builder.setTitle(R.string.add_apps)
|
builder.setTitle(R.string.add_apps)
|
||||||
|
|
||||||
val recyclerView = View.inflate(activity, R.layout.launcher_picker, null)
|
val recyclerView = View.inflate(activity, R.layout.launcher_picker, null)
|
||||||
recyclerView.launchers_holder.adapter = RecyclerAdapter(activity, true, launchers) {
|
recyclerView.launchers_holder.adapter = RecyclerAdapter(activity, true, launchers) { }
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
builder.setView(recyclerView)
|
builder.setView(recyclerView)
|
||||||
|
|
||||||
builder.setPositiveButton(android.R.string.ok, { dialogInterface, i ->
|
builder.setPositiveButton(android.R.string.ok, { dialogInterface, i ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user