Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/UserInterface/List/PairingDeviceItem.java
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 50 | public View inflateView(LayoutInflater layoutInflater) { | |||
---|---|---|---|---|---|
52 | 52 | | |||
53 | ImageView icon = (ImageView) v.findViewById(R.id.list_item_entry_icon); | 53 | ImageView icon = (ImageView) v.findViewById(R.id.list_item_entry_icon); | ||
54 | icon.setImageDrawable(device.getIcon()); | 54 | icon.setImageDrawable(device.getIcon()); | ||
55 | 55 | | |||
56 | TextView titleView = (TextView) v.findViewById(R.id.list_item_entry_title); | 56 | TextView titleView = (TextView) v.findViewById(R.id.list_item_entry_title); | ||
57 | titleView.setText(device.getName()); | 57 | titleView.setText(device.getName()); | ||
58 | 58 | | |||
59 | if (device.compareProtocolVersion() != 0) { | 59 | if (device.compareProtocolVersion() != 0) { | ||
60 | TextView summaryView = (TextView)v.findViewById(R.id.list_item_entry_summary); | 60 | TextView summaryView = (TextView) v.findViewById(R.id.list_item_entry_summary); | ||
61 | 61 | | |||
62 | if (device.compareProtocolVersion() > 0) { | 62 | if (device.compareProtocolVersion() > 0) { | ||
63 | summaryView.setText(R.string.protocol_version_newer); | 63 | summaryView.setText(R.string.protocol_version_newer); | ||
64 | summaryView.setVisibility(View.VISIBLE); | 64 | summaryView.setVisibility(View.VISIBLE); | ||
65 | } else { | 65 | } else { | ||
66 | //FIXME: Uncoment when we decide old versions are old enough to notify the user. | 66 | //FIXME: Uncoment when we decide old versions are old enough to notify the user. | ||
67 | summaryView.setVisibility(View.GONE); | 67 | summaryView.setVisibility(View.GONE); | ||
68 | /* | 68 | /* | ||
Show All 19 Lines |