2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Inline more variables

Reviewers: #kde_connect, mtijink

Reviewed By: #kde_connect, mtijink

Subscribers: #kde_connect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D10945
This commit is contained in:
Nicolas Fella
2018-03-03 15:51:35 +01:00
parent 49021b87af
commit 0a08cd43cb
7 changed files with 27 additions and 37 deletions

View File

@@ -795,8 +795,7 @@ public class Device implements BaseLink.PackageReceiver {
public boolean isPluginEnabled(String pluginKey) {
boolean enabledByDefault = PluginFactory.getPluginInfo(context, pluginKey).isEnabledByDefault();
boolean enabled = settings.getBoolean(pluginKey, enabledByDefault);
return enabled;
return settings.getBoolean(pluginKey, enabledByDefault);
}
public void reloadPluginsFromSettings() {