mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +00:00
Autoformat code
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.kde.kdeconnect.Plugins.ContactsPlugin;
|
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
|
* 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
|
* Used to request the names for the contacts corresponding to a list of UIDs
|
||||||
* <p>
|
* <p>
|
||||||
* It shall contain the key "uids", which will have a list of uIDs (long int, as string)
|
* 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
|
* 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)
|
* 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
|
* 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
|
* Response indicating the packet contains a list of contact names
|
||||||
@@ -73,11 +73,11 @@ public class ContactsPlugin extends Plugin {
|
|||||||
* <p>
|
* <p>
|
||||||
* For example:
|
* For example:
|
||||||
* ( 'uids' : ['1', '3', '15'],
|
* ( 'uids' : ['1', '3', '15'],
|
||||||
* '1' : 'John Smith',
|
* '1' : 'John Smith',
|
||||||
* '3' : 'Abe Lincoln',
|
* '3' : 'Abe Lincoln',
|
||||||
* '15' : 'Mom' )
|
* '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
|
@Override
|
||||||
public String getDisplayName() {
|
public String getDisplayName() {
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package org.kde.kdeconnect.Plugins.FindMyPhonePlugin;
|
package org.kde.kdeconnect.Plugins.FindMyPhonePlugin;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
@@ -30,7 +30,6 @@ import android.os.Bundle;
|
|||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ package org.kde.kdeconnect.Plugins.SharePlugin;
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import android.app.Notification;
|
import android.app.Notification;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
@@ -110,9 +110,10 @@ public class ShareNotification {
|
|||||||
if (image != null) {
|
if (image != null) {
|
||||||
builder.setLargeIcon(image);
|
builder.setLargeIcon(image);
|
||||||
builder.setStyle(new NotificationCompat.BigPictureStyle()
|
builder.setStyle(new NotificationCompat.BigPictureStyle()
|
||||||
.bigPicture(image));
|
.bigPicture(image));
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException ignored) {}
|
} catch (FileNotFoundException ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!"file".equals(destinationUri.getScheme())) {
|
if (!"file".equals(destinationUri.getScheme())) {
|
||||||
return;
|
return;
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.kde.kdeconnect.Plugins.SharePlugin;
|
package org.kde.kdeconnect.Plugins.SharePlugin;
|
||||||
|
|
||||||
|
@@ -16,19 +16,17 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.kde.kdeconnect.Plugins.SystemvolumePlugin;
|
package org.kde.kdeconnect.Plugins.SystemvolumePlugin;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.drawable.Drawable;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.v4.app.ListFragment;
|
import android.support.v4.app.ListFragment;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.TypedValue;
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
|
Reference in New Issue
Block a user