From 226104ea10f32d60b6cb572a797912e957b7a2f4 Mon Sep 17 00:00:00 2001 From: Doug Keen Date: Wed, 2 Nov 2016 18:15:09 -0700 Subject: [PATCH] Show error text on screen instead of a toast --- .../com/dougkeen/bart/activities/ViewDeparturesActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/dougkeen/bart/activities/ViewDeparturesActivity.java b/app/src/main/java/com/dougkeen/bart/activities/ViewDeparturesActivity.java index 1a100bd..ae845ae 100644 --- a/app/src/main/java/com/dougkeen/bart/activities/ViewDeparturesActivity.java +++ b/app/src/main/java/com/dougkeen/bart/activities/ViewDeparturesActivity.java @@ -751,9 +751,7 @@ public class ViewDeparturesActivity extends AppCompatActivity implements runOnUiThread(new Runnable() { @Override public void run() { - // TODO(fuegofro) - see if there's a way to not use toasts - Toast.makeText(ViewDeparturesActivity.this, errorMessage, - Toast.LENGTH_LONG).show(); + mEmptyView.setText(errorMessage); } }); }