Browse Source

Progressdialog tweak

pull/24/head
Ezerous 8 years ago
parent
commit
223789531c
  1. 6
      app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java
  2. 3
      app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java
  3. 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
btnLogin.setEnabled(false); //Login button shouldn't be pressed during this
progressDialog = new ProgressDialog(LoginActivity.this,R.style.MyProgressDialog);
progressDialog.setTitle("Please Wait");
progressDialog.setMessage("Authenticating...");
progressDialog = new ProgressDialog(LoginActivity.this,R.style.AppTheme_Dark_Dialog);
progressDialog.setCancelable(false);
progressDialog.setIndeterminate(true);
progressDialog.setMessage("Authenticating...");
progressDialog.show();
}

3
app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java

@ -178,7 +178,8 @@ public class MainActivity extends BaseActivity implements RecentFragment.OnListF
protected void onPreExecute()
{ //Show a progress dialog until done
progressDialog = new ProgressDialog(MainActivity.this,
R.style.MyProgressDialog);
R.style.AppTheme_Dark_Dialog);
progressDialog.setCancelable(false);
progressDialog.setIndeterminate(true);
progressDialog.setMessage("Logging out...");
progressDialog.show();

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

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

Loading…
Cancel
Save