summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-08-15 11:09:51 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-15 23:21:40 +0100
commit2013db973559e0b816b8dc8e45310b4acc8ff196 (patch)
tree2b7f9187d01aed4086413d965e8cf2d3131c0635
parentb6bec89fd40a24751e2371328a17ee2aad2903fe (diff)
ProgressBar xml is loaded correctly.
-rw-r--r--res/layout/client_dashboard.xml2
-rw-r--r--src/se/leap/bitmaskclient/Dashboard.java7
2 files changed, 8 insertions, 1 deletions
diff --git a/res/layout/client_dashboard.xml b/res/layout/client_dashboard.xml
index 2c9b0528..21008b45 100644
--- a/res/layout/client_dashboard.xml
+++ b/res/layout/client_dashboard.xml
@@ -72,7 +72,7 @@
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:max="4"
+ android:gravity="center"
android:visibility="gone" />
</LinearLayout>
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java
index 0e6cb657..30fa512c 100644
--- a/src/se/leap/bitmaskclient/Dashboard.java
+++ b/src/se/leap/bitmaskclient/Dashboard.java
@@ -164,6 +164,13 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
setContentView(R.layout.client_dashboard);
+ mProgressBar = (ProgressBar) findViewById(R.id.progressbar_dashboard);
+
+ providerAPI_broadcast_receiver_update = new ProviderAPIBroadcastReceiver_Update();
+ IntentFilter update_intent_filter = new IntentFilter(ProviderAPI.UPDATE_ACTION);
+ update_intent_filter.addCategory(Intent.CATEGORY_DEFAULT);
+ registerReceiver(providerAPI_broadcast_receiver_update, update_intent_filter);
+
providerNameTV = (TextView) findViewById(R.id.providerName);
providerNameTV.setText(provider.getDomain());
providerNameTV.setTextSize(28);