From e3a573c2d7b53b9e2088c8c345a0b19fbca5c1f0 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 13 Apr 2017 21:55:05 +0200 Subject: Optimized imports from entire project --- art/play_gif.svg | 20 ++++---------------- libs/android-transcoder/src/main/AndroidManifest.xml | 3 +-- .../messenger/services/XmppConnectionService.java | 7 +------ .../java/de/pixart/messenger/ui/UpdaterActivity.java | 3 --- .../pixart/messenger/utils/NickValidityChecker.java | 2 +- .../de/pixart/messenger/xmpp/XmppConnection.java | 2 +- src/main/res/layout/message_status.xml | 1 - 7 files changed, 8 insertions(+), 30 deletions(-) diff --git a/art/play_gif.svg b/art/play_gif.svg index 47f5cc24d..7315ba4f3 100644 --- a/art/play_gif.svg +++ b/art/play_gif.svg @@ -1,20 +1,8 @@ - + diff --git a/libs/android-transcoder/src/main/AndroidManifest.xml b/libs/android-transcoder/src/main/AndroidManifest.xml index 0bfa93402..8f4da3821 100644 --- a/libs/android-transcoder/src/main/AndroidManifest.xml +++ b/libs/android-transcoder/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 6cfef225b..f2f8a1ba5 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -49,11 +49,7 @@ import org.openintents.openpgp.util.OpenPgpServiceConnection; import java.io.FileDescriptor; import java.io.FileNotFoundException; -import java.io.IOException; import java.math.BigInteger; -import java.net.InetSocketAddress; -import java.net.Socket; -import java.net.SocketAddress; import java.net.URL; import java.security.SecureRandom; import java.security.cert.CertificateException; @@ -118,13 +114,12 @@ import de.pixart.messenger.utils.ConversationsFileObserver; import de.pixart.messenger.utils.CryptoHelper; import de.pixart.messenger.utils.ExceptionHelper; import de.pixart.messenger.utils.MimeUtils; +import de.pixart.messenger.utils.Namespace; import de.pixart.messenger.utils.OnPhoneContactsLoadedListener; import de.pixart.messenger.utils.PRNGFixes; import de.pixart.messenger.utils.PhoneHelper; import de.pixart.messenger.utils.ReplacingSerialSingleThreadExecutor; import de.pixart.messenger.utils.SerialSingleThreadExecutor; -import de.pixart.messenger.utils.Namespace; -import de.pixart.messenger.utils.SocksSocketFactory; import de.pixart.messenger.utils.XmppUri; import de.pixart.messenger.xml.Element; import de.pixart.messenger.xmpp.OnBindListener; diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java index 666e3beba..1d24047de 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -9,7 +9,6 @@ import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; -import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.net.ConnectivityManager; @@ -17,7 +16,6 @@ import android.net.NetworkInfo; import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.os.Environment; import android.support.v4.app.ActivityCompat; import android.util.Log; import android.view.WindowManager; @@ -33,7 +31,6 @@ import de.pixart.messenger.Config; import de.pixart.messenger.R; import de.pixart.messenger.persistance.FileBackend; import de.pixart.messenger.services.UpdaterWebService; -import de.pixart.messenger.services.XmppConnectionService; public class UpdaterActivity extends Activity { diff --git a/src/main/java/de/pixart/messenger/utils/NickValidityChecker.java b/src/main/java/de/pixart/messenger/utils/NickValidityChecker.java index 0b4df771f..5ef8d2d25 100644 --- a/src/main/java/de/pixart/messenger/utils/NickValidityChecker.java +++ b/src/main/java/de/pixart/messenger/utils/NickValidityChecker.java @@ -1,8 +1,8 @@ package de.pixart.messenger.utils; import java.util.HashSet; -import java.util.Set; import java.util.List; +import java.util.Set; import de.pixart.messenger.entities.Conversation; import de.pixart.messenger.xmpp.jid.InvalidJidException; diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 9e9b6f752..d3132961f 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -68,9 +68,9 @@ import de.pixart.messenger.generator.IqGenerator; import de.pixart.messenger.services.XmppConnectionService; import de.pixart.messenger.ui.EditAccountActivity; import de.pixart.messenger.utils.DNSHelper; +import de.pixart.messenger.utils.Namespace; import de.pixart.messenger.utils.SSLSocketHelper; import de.pixart.messenger.utils.SocksSocketFactory; -import de.pixart.messenger.utils.Namespace; import de.pixart.messenger.xml.Element; import de.pixart.messenger.xml.Tag; import de.pixart.messenger.xml.TagWriter; diff --git a/src/main/res/layout/message_status.xml b/src/main/res/layout/message_status.xml index 211f1a2e7..46db51078 100644 --- a/src/main/res/layout/message_status.xml +++ b/src/main/res/layout/message_status.xml @@ -1,6 +1,5 @@