mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +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) {
|
||||
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
|
||||
String appNameLabelText = deviceApp.getName();
|
||||
holder.mDeviceAppNameLabel.setText(appNameLabelText);
|
||||
|
Loading…
Reference in New Issue
Block a user