1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00

Misuse device_candidate_item insead of device_item for AppManager

This commit is contained in:
Andreas Shimokawa 2015-06-07 22:02:40 +02:00
parent c98716d469
commit 4f8a7ea64d

View File

@ -31,14 +31,14 @@ public class GBDeviceAppAdapter extends ArrayAdapter<GBDeviceApp> {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.device_item, parent, false);
view = inflater.inflate(R.layout.device_candidate_item, parent, false);
}
TextView deviceStatusLabel = (TextView) view.findViewById(R.id.device_status);
TextView deviceNameLabel = (TextView) view.findViewById(R.id.device_name);
ImageView deviceImageView = (ImageView) view.findViewById(R.id.device_image);
TextView deviceAppVersionAuthorLabel = (TextView) view.findViewById(R.id.device_candidate_address);
TextView deviceAppNameLabel = (TextView) view.findViewById(R.id.device_candidate_name);
ImageView deviceImageView = (ImageView) view.findViewById(R.id.device_candidate_image);
deviceStatusLabel.setText(getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator()));
deviceNameLabel.setText(deviceApp.getName());
deviceAppVersionAuthorLabel.setText(getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator()));
deviceAppNameLabel.setText(deviceApp.getName());
switch (deviceApp.getType()) {
case APP_ACTIVITYTRACKER:
deviceImageView.setImageResource(R.drawable.ic_activitytracker);