From a537439bc60bf9f5beb5a98e66b1872d2189853b Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 29 Sep 2018 20:28:47 +0200 Subject: [PATCH] Autoformat code --- .../Plugins/ContactsPlugin/ContactsPlugin.java | 16 ++++++++-------- .../FindMyPhonePlugin/FindMyPhoneActivity.java | 3 +-- .../Plugins/SharePlugin/ShareNotification.java | 7 ++++--- .../Plugins/SharePlugin/SharePlugin.java | 4 ++-- .../SystemvolumePlugin/SystemvolumeFragment.java | 4 +--- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/ContactsPlugin/ContactsPlugin.java b/src/org/kde/kdeconnect/Plugins/ContactsPlugin/ContactsPlugin.java index 9ee1690e..374c3430 100644 --- a/src/org/kde/kdeconnect/Plugins/ContactsPlugin/ContactsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ContactsPlugin/ContactsPlugin.java @@ -19,7 +19,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . -*/ + */ package org.kde.kdeconnect.Plugins.ContactsPlugin; @@ -48,14 +48,14 @@ public class ContactsPlugin extends Plugin { /** * Used to request the device send the unique ID of every contact */ - public static final String PACKET_TYPE_CONTACTS_REQUEST_ALL_UIDS_TIMESTAMPS = "kdeconnect.contacts.request_all_uids_timestamps"; + private static final String PACKET_TYPE_CONTACTS_REQUEST_ALL_UIDS_TIMESTAMPS = "kdeconnect.contacts.request_all_uids_timestamps"; /** * Used to request the names for the contacts corresponding to a list of UIDs *

* It shall contain the key "uids", which will have a list of uIDs (long int, as string) */ - public static final String PACKET_TYPE_CONTACTS_REQUEST_VCARDS_BY_UIDS = "kdeconnect.contacts.request_vcards_by_uid"; + private static final String PACKET_TYPE_CONTACTS_REQUEST_VCARDS_BY_UIDS = "kdeconnect.contacts.request_vcards_by_uid"; /** * Response indicating the packet contains a list of contact uIDs @@ -63,7 +63,7 @@ public class ContactsPlugin extends Plugin { * It shall contain the key "uids", which will mark a list of uIDs (long int, as string) * The returned IDs can be used in future requests for more information about the contact */ - public static final String PACKET_TYPE_CONTACTS_RESPONSE_UIDS_TIMESTAMPS = "kdeconnect.contacts.response_uids_timestamps"; + private static final String PACKET_TYPE_CONTACTS_RESPONSE_UIDS_TIMESTAMPS = "kdeconnect.contacts.response_uids_timestamps"; /** * Response indicating the packet contains a list of contact names @@ -73,11 +73,11 @@ public class ContactsPlugin extends Plugin { *

* For example: * ( 'uids' : ['1', '3', '15'], - * '1' : 'John Smith', - * '3' : 'Abe Lincoln', - * '15' : 'Mom' ) + * '1' : 'John Smith', + * '3' : 'Abe Lincoln', + * '15' : 'Mom' ) */ - public static final String PACKET_TYPE_CONTACTS_RESPONSE_VCARDS = "kdeconnect.contacts.response_vcards"; + private static final String PACKET_TYPE_CONTACTS_RESPONSE_VCARDS = "kdeconnect.contacts.response_vcards"; @Override public String getDisplayName() { diff --git a/src/org/kde/kdeconnect/Plugins/FindMyPhonePlugin/FindMyPhoneActivity.java b/src/org/kde/kdeconnect/Plugins/FindMyPhonePlugin/FindMyPhoneActivity.java index e1f3cd5a..0392fc31 100644 --- a/src/org/kde/kdeconnect/Plugins/FindMyPhonePlugin/FindMyPhoneActivity.java +++ b/src/org/kde/kdeconnect/Plugins/FindMyPhonePlugin/FindMyPhoneActivity.java @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . -*/ + */ package org.kde.kdeconnect.Plugins.FindMyPhonePlugin; import android.app.Activity; @@ -30,7 +30,6 @@ import android.os.Bundle; import android.preference.PreferenceManager; import android.provider.Settings; import android.util.Log; -import android.view.View; import android.view.Window; import android.view.WindowManager; diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java index 3208ea45..299e1124 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java @@ -18,7 +18,7 @@ package org.kde.kdeconnect.Plugins.SharePlugin; * * You should have received a copy of the GNU General Public License * along with this program. If not, see . -*/ + */ import android.app.Notification; import android.app.NotificationManager; @@ -110,9 +110,10 @@ public class ShareNotification { if (image != null) { builder.setLargeIcon(image); builder.setStyle(new NotificationCompat.BigPictureStyle() - .bigPicture(image)); + .bigPicture(image)); } - } catch (FileNotFoundException ignored) {} + } catch (FileNotFoundException ignored) { + } } if (!"file".equals(destinationUri.getScheme())) { return; diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java index cb3b66dc..ab44322b 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java @@ -15,8 +15,8 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ + * along with this program. If not, see . + */ package org.kde.kdeconnect.Plugins.SharePlugin; diff --git a/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumeFragment.java b/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumeFragment.java index 9600f6c5..ffde3fe6 100644 --- a/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumeFragment.java +++ b/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumeFragment.java @@ -16,19 +16,17 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . -*/ + */ package org.kde.kdeconnect.Plugins.SystemvolumePlugin; import android.app.Activity; import android.content.Context; -import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.ListFragment; import android.util.Log; -import android.util.TypedValue; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter;