mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-24 08:37:32 +01:00
Hide unknown author/creator in app manager lists
This commit is contained in:
parent
75a645d585
commit
6b58627487
@ -80,7 +80,13 @@ public class GBDeviceAppAdapter extends RecyclerView.Adapter<GBDeviceAppAdapter.
|
|||||||
public void onBindViewHolder(final AppViewHolder holder, int position) {
|
public void onBindViewHolder(final AppViewHolder holder, int position) {
|
||||||
final GBDeviceApp deviceApp = appList.get(position);
|
final GBDeviceApp deviceApp = appList.get(position);
|
||||||
|
|
||||||
holder.mDeviceAppVersionAuthorLabel.setText(GBApplication.getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator()));
|
String appVersionAuthor;
|
||||||
|
if ((deviceApp.getCreator().equals("")) || (deviceApp.getCreator().equals("(unknown)"))) {
|
||||||
|
appVersionAuthor = deviceApp.getVersion();
|
||||||
|
} else {
|
||||||
|
appVersionAuthor = GBApplication.getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator());
|
||||||
|
}
|
||||||
|
holder.mDeviceAppVersionAuthorLabel.setText(appVersionAuthor);
|
||||||
// FIXME: replace with small icons
|
// FIXME: replace with small icons
|
||||||
String appNameLabelText = deviceApp.getName();
|
String appNameLabelText = deviceApp.getName();
|
||||||
holder.mDeviceAppNameLabel.setText(appNameLabelText);
|
holder.mDeviceAppNameLabel.setText(appNameLabelText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user