From 8b70681099a5cb8b9a9360181364048d49336432 Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Tue, 14 Feb 2017 14:29:25 +0300 Subject: [PATCH] Converted a toast into a log message, removed a small dead condition --- .../java/com/github/yeriomin/yalpstore/DetailsActivity.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/DetailsActivity.java b/app/src/main/java/com/github/yeriomin/yalpstore/DetailsActivity.java index 935a748d..91af4693 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/DetailsActivity.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/DetailsActivity.java @@ -14,7 +14,6 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; -import android.widget.Toast; import com.github.yeriomin.yalpstore.model.App; @@ -52,7 +51,7 @@ protected void onNewIntent(Intent intent) { final String packageName = getIntentPackageName(intent); if (packageName == null || packageName.isEmpty()) { - Toast.makeText(this, "No package name provided", Toast.LENGTH_LONG).show(); + Log.e(this.getClass().getName(), "No package name provided"); finishActivity(0); return; } @@ -66,9 +65,6 @@ protected void onPostExecute(Throwable e) { if (this.app != null) { DetailsDependentActivity.app = this.app; drawDetails(this.app); - } else { - Log.e(getClass().getName(), "Could not get requested app"); - finishActivity(0); } } };