Browse Source

progressDialog Fix

pull/24/head
Iason Karakostas 8 years ago
parent
commit
da63b0ee0d
  1. 6
      app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java
  2. 6
      app/src/main/res/values/styles.xml

6
app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java

@ -128,10 +128,10 @@ public class LoginActivity extends BaseActivity {
protected void onPreExecute() { //Show a progress dialog until done protected void onPreExecute() { //Show a progress dialog until done
btnLogin.setEnabled(false); //Login button shouldn't be pressed during this btnLogin.setEnabled(false); //Login button shouldn't be pressed during this
progressDialog = new ProgressDialog(LoginActivity.this, progressDialog = new ProgressDialog(LoginActivity.this,R.style.MyProgressDialog);
R.style.AppTheme); progressDialog.setTitle("Please Wait");
progressDialog.setIndeterminate(true);
progressDialog.setMessage("Authenticating..."); progressDialog.setMessage("Authenticating...");
progressDialog.setIndeterminate(true);
progressDialog.show(); progressDialog.show();
} }

6
app/src/main/res/values/styles.xml

@ -41,4 +41,10 @@
<item name="android:background">@color/primary</item> <item name="android:background">@color/primary</item>
</style> </style>
<style name="MyProgressDialog" parent="Theme.AppCompat.Dialog">
<item name="colorAccent">@color/black</item>
<item name="android:textColor">@color/secondary_text</item>
</style>
</resources> </resources>

Loading…
Cancel
Save