mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Autoformat code
This commit is contained in:
parent
da3106f123
commit
a537439bc6
@ -19,7 +19,7 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
|
||||
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
|
||||
* <p>
|
||||
* 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 {
|
||||
* <p>
|
||||
* 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() {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
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;
|
||||
|
||||
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
|
||||
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;
|
||||
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.kde.kdeconnect.Plugins.SharePlugin;
|
||||
|
||||
|
@ -16,19 +16,17 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user