Skip to content

Commit

Permalink
Converted a toast into a log message, removed a small dead condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Feb 14, 2017
1 parent ce47de6 commit 8b70681
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand All @@ -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);
}
}
};
Expand Down

0 comments on commit 8b70681

Please sign in to comment.