Added item spacing to other adapters as well

This commit is contained in:
ottoptj 2024-08-31 00:26:59 +03:00
commit c137c68367
4 changed files with 8 additions and 2 deletions

View file

@ -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) {

View file

@ -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

View file

@ -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(

View file

@ -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"])