Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect Android
Commits
0b3bbda6
Commit
0b3bbda6
authored
Feb 28, 2019
by
Nicolas Fella
Browse files
Replace lambda with method ref
parent
2a32eb4b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/org/kde/kdeconnect/UserInterface/DeviceSettingsFragment.java
View file @
0b3bbda6
...
@@ -94,7 +94,7 @@ public class DeviceSettingsFragment extends PreferenceFragmentCompat {
...
@@ -94,7 +94,7 @@ public class DeviceSettingsFragment extends PreferenceFragmentCompat {
final
Device
device
=
service
.
getDevice
(
deviceId
);
final
Device
device
=
service
.
getDevice
(
deviceId
);
if
(
device
==
null
)
{
if
(
device
==
null
)
{
final
FragmentActivity
activity
=
requireActivity
();
final
FragmentActivity
activity
=
requireActivity
();
activity
.
runOnUiThread
(
()
->
activity
.
finish
()
);
activity
.
runOnUiThread
(
activity
:
:
finish
);
return
;
return
;
}
}
List
<
String
>
plugins
=
device
.
getSupportedPlugins
();
List
<
String
>
plugins
=
device
.
getSupportedPlugins
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment