1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-27 07:20:13 +02: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 LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); .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 deviceAppVersionAuthorLabel = (TextView) view.findViewById(R.id.device_candidate_address);
TextView deviceNameLabel = (TextView) view.findViewById(R.id.device_name); TextView deviceAppNameLabel = (TextView) view.findViewById(R.id.device_candidate_name);
ImageView deviceImageView = (ImageView) view.findViewById(R.id.device_image); ImageView deviceImageView = (ImageView) view.findViewById(R.id.device_candidate_image);
deviceStatusLabel.setText(getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator())); deviceAppVersionAuthorLabel.setText(getContext().getString(R.string.appversion_by_creator, deviceApp.getVersion(), deviceApp.getCreator()));
deviceNameLabel.setText(deviceApp.getName()); deviceAppNameLabel.setText(deviceApp.getName());
switch (deviceApp.getType()) { switch (deviceApp.getType()) {
case APP_ACTIVITYTRACKER: case APP_ACTIVITYTRACKER:
deviceImageView.setImageResource(R.drawable.ic_activitytracker); deviceImageView.setImageResource(R.drawable.ic_activitytracker);