aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines/suma/BusSpecificStopView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/cbaines/suma/BusSpecificStopView.java')
-rw-r--r--src/net/cbaines/suma/BusSpecificStopView.java22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/net/cbaines/suma/BusSpecificStopView.java b/src/net/cbaines/suma/BusSpecificStopView.java
index 777d031..9832588 100644
--- a/src/net/cbaines/suma/BusSpecificStopView.java
+++ b/src/net/cbaines/suma/BusSpecificStopView.java
@@ -73,7 +73,8 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener
time = (TextView) findViewById(R.id.busSpecificStopViewTime);
time.setTextSize(22f);
- // timeProgress = new ProgressBar(context, null, android.R.attr.progressBarStyleSmall);
+ // timeProgress = new ProgressBar(context, null,
+ // android.R.attr.progressBarStyleSmall);
timeProgress = (ProgressBar) findViewById(R.id.busSpecificStopViewProgressBar);
Resources resources = context.getResources();
@@ -81,23 +82,6 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener
onClickUnidentifiedMessage = resources.getString(R.string.bus_stop_view_on_click_toast_unidentified_message);
setStop(stop);
-
- // RelativeLayout.LayoutParams relativeParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
- // LayoutParams.WRAP_CONTENT);
- // relativeParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
- //
- // RelativeLayout.LayoutParams relativeParams2 = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
- // LayoutParams.FILL_PARENT);
- // relativeParams2.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
- //
- // addView(location, relativeParams);
- // addView(time, relativeParams2);
- //
- // // LinearLayout progressLayout = new LinearLayout(context);
- // // progressLayout.setOrientation(LinearLayout.VERTICAL);
- // // progressLayout.addView(timeProgress, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
- //
- // addView(timeProgress, relativeParams2);
}
public void setStop(Stop stop) {
@@ -117,8 +101,6 @@ public class BusSpecificStopView extends LinearLayout implements OnClickListener
time.setVisibility(View.VISIBLE);
timeProgress.setVisibility(View.GONE);
} else if (stop instanceof StopLoading) {
- time.setText("");
- time.setVisibility(View.GONE);
timeProgress.setVisibility(View.VISIBLE);
} else { // No time available (yet) and not currently loading
time.setVisibility(View.GONE);