From d765ef2185beb5f0ed5b8da405f4720c1ceff632 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Thu, 15 Dec 2016 20:37:55 +0800 Subject: [PATCH] improved ipc error handling updated version --- twidere/build.gradle | 4 ++-- .../twidere/util/MediaUploaderInterface.java | 18 ++++-------------- .../twidere/util/StatusShortenerInterface.java | 18 ++++-------------- .../twidere/task/twitter/UpdateStatusTask.kt | 6 ++---- 4 files changed, 12 insertions(+), 34 deletions(-) diff --git a/twidere/build.gradle b/twidere/build.gradle index 40195730c..250aed38a 100644 --- a/twidere/build.gradle +++ b/twidere/build.gradle @@ -35,8 +35,8 @@ android { applicationId "org.mariotaku.twidere" minSdkVersion 14 targetSdkVersion 25 - versionCode 240 - versionName '3.3.22' + versionCode 241 + versionName '3.3.23' multiDexEnabled true buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")' diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/MediaUploaderInterface.java b/twidere/src/main/java/org/mariotaku/twidere/util/MediaUploaderInterface.java index 556a712c6..67a5eb139 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/MediaUploaderInterface.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/MediaUploaderInterface.java @@ -27,10 +27,7 @@ import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.os.IBinder; -import android.os.RemoteException; -import android.util.Log; -import org.mariotaku.twidere.BuildConfig; import org.mariotaku.twidere.IMediaUploader; import org.mariotaku.twidere.model.MediaUploadResult; import org.mariotaku.twidere.model.ParcelableStatus; @@ -40,7 +37,6 @@ import org.mariotaku.twidere.model.UserKey; import java.util.List; -import static org.mariotaku.twidere.TwidereConstants.LOGTAG; import static org.mariotaku.twidere.constant.IntentConstants.INTENT_ACTION_EXTENSION_UPLOAD_MEDIA; public final class MediaUploaderInterface extends AbsServiceInterface { @@ -58,12 +54,9 @@ public final class MediaUploaderInterface extends AbsServiceInterface { @@ -63,12 +59,9 @@ public final class StatusShortenerInterface extends AbsServiceInterface