Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/UserInterface/DeviceFragment.java
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 324 | if (device.isPairRequestedByPeer()) { | |||
---|---|---|---|---|---|
329 | rootView.findViewById(R.id.pair_request).setVisibility(View.VISIBLE); | 329 | rootView.findViewById(R.id.pair_request).setVisibility(View.VISIBLE); | ||
330 | } else { | 330 | } else { | ||
331 | 331 | | |||
332 | boolean paired = device.isPaired(); | 332 | boolean paired = device.isPaired(); | ||
333 | boolean reachable = device.isReachable(); | 333 | boolean reachable = device.isReachable(); | ||
334 | boolean onData = NetworkHelper.isOnMobileNetwork(getContext()); | 334 | boolean onData = NetworkHelper.isOnMobileNetwork(getContext()); | ||
335 | 335 | | |||
336 | rootView.findViewById(R.id.pairing_buttons).setVisibility(paired ? View.GONE : View.VISIBLE); | 336 | rootView.findViewById(R.id.pairing_buttons).setVisibility(paired ? View.GONE : View.VISIBLE); | ||
337 | rootView.findViewById(R.id.error_message_container).setVisibility((paired && !reachable) ? View.VISIBLE : View.GONE); | ||||
337 | rootView.findViewById(R.id.not_reachable_message).setVisibility((paired && !reachable && !onData) ? View.VISIBLE : View.GONE); | 338 | rootView.findViewById(R.id.not_reachable_message).setVisibility((paired && !reachable && !onData) ? View.VISIBLE : View.GONE); | ||
338 | rootView.findViewById(R.id.on_data_message).setVisibility((paired && !reachable && onData) ? View.VISIBLE : View.GONE); | 339 | rootView.findViewById(R.id.on_data_message).setVisibility((paired && !reachable && onData) ? View.VISIBLE : View.GONE); | ||
339 | 340 | | |||
340 | try { | 341 | try { | ||
341 | pluginListItems = new ArrayList<>(); | 342 | pluginListItems = new ArrayList<>(); | ||
342 | 343 | | |||
343 | //Plugins button list | 344 | //Plugins button list | ||
344 | final Collection<Plugin> plugins = device.getLoadedPlugins().values(); | 345 | final Collection<Plugin> plugins = device.getLoadedPlugins().values(); | ||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |