mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Misuse device_candidate_item insead of device_item for AppManager
This commit is contained in:
parent
c98716d469
commit
4f8a7ea64d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user