mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Added item spacing to other adapters as well
This commit is contained in:
parent
05e29c5140
commit
c137c68367
4 changed files with 8 additions and 2 deletions
|
|
@ -134,6 +134,8 @@ class AppMenuAdapter(
|
||||||
|
|
||||||
uiUtils.setAppSize(holder.textView, holder.editText)
|
uiUtils.setAppSize(holder.textView, holder.editText)
|
||||||
|
|
||||||
|
uiUtils.setAppSpacing(holder.textView)
|
||||||
|
|
||||||
// Update the application information (allows updating apps to work)
|
// Update the application information (allows updating apps to work)
|
||||||
val appInfo = appUtils.getAppInfo(
|
val appInfo = appUtils.getAppInfo(
|
||||||
app.first.applicationInfo.packageName,
|
app.first.applicationInfo.packageName,
|
||||||
|
|
@ -165,8 +167,6 @@ class AppMenuAdapter(
|
||||||
}
|
}
|
||||||
else {holder.textView.text = appLabel}
|
else {holder.textView.text = appLabel}
|
||||||
|
|
||||||
uiUtils.setAppSpacing(holder.textView)
|
|
||||||
|
|
||||||
holder.textView.visibility = View.VISIBLE
|
holder.textView.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (appInfo != null) {
|
if (appInfo != null) {
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ class GestureAppsAdapter(
|
||||||
|
|
||||||
uiUtils.setAppSize(holder.textView)
|
uiUtils.setAppSize(holder.textView)
|
||||||
|
|
||||||
|
uiUtils.setAppSpacing(holder.textView)
|
||||||
|
|
||||||
// Does not need to be specially updated since it's in a separate activity and thus reloads when opened again
|
// Does not need to be specially updated since it's in a separate activity and thus reloads when opened again
|
||||||
val appInfo = app.first.activityInfo.applicationInfo
|
val appInfo = app.first.activityInfo.applicationInfo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ class HiddenAppsAdapter(
|
||||||
|
|
||||||
uiUtils.setAppSize(holder.textView)
|
uiUtils.setAppSize(holder.textView)
|
||||||
|
|
||||||
|
uiUtils.setAppSpacing(holder.textView)
|
||||||
|
|
||||||
// Separate activity from Main so does not need special update
|
// Separate activity from Main so does not need special update
|
||||||
val appInfo = app.first.activityInfo.applicationInfo
|
val appInfo = app.first.activityInfo.applicationInfo
|
||||||
holder.textView.text = sharedPreferenceManager.getAppName(
|
holder.textView.text = sharedPreferenceManager.getAppName(
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ class LocationListAdapter(
|
||||||
|
|
||||||
uiUtils.setAppSize(holder.textView, null, holder.regionText)
|
uiUtils.setAppSize(holder.textView, null, holder.regionText)
|
||||||
|
|
||||||
|
uiUtils.setAppSpacing(holder.textView)
|
||||||
|
|
||||||
holder.textView.text = location["name"]
|
holder.textView.text = location["name"]
|
||||||
holder.regionText.text = context.getString(R.string.region_text, location["region"], location["country"])
|
holder.regionText.text = context.getString(R.string.region_text, location["region"], location["country"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue