aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-03-14 18:05:37 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-03-14 18:05:37 +0000
commit4d8977583a8b90d464dd4298b14d0bd6778618f5 (patch)
tree0823165b4c4c804d1777992cc41fcf784765540c /src/net
parent19e189ef9ed67f382fea00e48f997ce8e979f030 (diff)
downloadsouthamptonuniversitymap-4d8977583a8b90d464dd4298b14d0bd6778618f5.tar
southamptonuniversitymap-4d8977583a8b90d464dd4298b14d0bd6778618f5.tar.gz
Stoped the progress bars on the Bus activity from replacing the times.
Diffstat (limited to 'src/net')
-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);