mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-05 00:25:09 +00:00
Improvements to plugins settings.
Added a startPreferencesActivity method to Plugin so we don't need to do a hack to launch a custom activity for the notifications plugin. CCMAIL: grg.vineet@gmail.com
This commit is contained in:
@@ -558,7 +558,15 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
//
|
||||
|
||||
public Plugin getPlugin(String name) {
|
||||
return plugins.get(name);
|
||||
return getPlugin(name, false);
|
||||
}
|
||||
|
||||
public Plugin getPlugin(String name, boolean includeFailed) {
|
||||
Plugin plugin = plugins.get(name);
|
||||
if (includeFailed && plugin == null) {
|
||||
plugin = failedPlugins.get(name);
|
||||
}
|
||||
return plugin;
|
||||
}
|
||||
|
||||
private synchronized void addPlugin(final String name) {
|
||||
|
Reference in New Issue
Block a user