diff options
-rw-r--r-- | res/layout/client_dashboard.xml | 2 | ||||
-rw-r--r-- | src/se/leap/bitmaskclient/Dashboard.java | 7 |
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); |