mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Sorting for renaming is now implemented.
This commit is contained in:
parent
3deaa2b57d
commit
02115b1ade
2 changed files with 4 additions and 1 deletions
|
|
@ -142,8 +142,10 @@ class AppMenuActivity : AppCompatActivity(), AppMenuAdapter.OnItemClickListener,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return allApps.sortedBy {
|
return allApps.sortedBy {
|
||||||
it.first.applicationInfo.loadLabel(packageManager).toString().lowercase()
|
sharedPreferenceManager.getAppName(this, it.first.applicationInfo.packageName,it.second.second, it.first.applicationInfo.loadLabel(packageManager)).toString().lowercase()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ class AppMenuAdapter(private val activity: AppMenuActivity, private var apps: Li
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AppViewHolder {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AppViewHolder {
|
||||||
val view = LayoutInflater.from(parent.context)
|
val view = LayoutInflater.from(parent.context)
|
||||||
.inflate(R.layout.app_item_layout, parent, false)
|
.inflate(R.layout.app_item_layout, parent, false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue