浏览代码

Re-added titles to progress dialogs in the sample project, they were temporarily taken out for testing the new layout distribution stuff.

Aidan Follestad 10 年之前
父节点
当前提交
bb216b2436
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      sample/src/main/java/com/afollestad/materialdialogssample/MainActivity.java

+ 2 - 4
sample/src/main/java/com/afollestad/materialdialogssample/MainActivity.java

@@ -538,16 +538,14 @@ public class MainActivity extends ActionBarActivity implements FolderSelectorDia
 
     public void showProgressDialog(boolean indeterminate) {
         if (indeterminate) {
-//            .title(R.string.progress_dialog)
             new MaterialDialog.Builder(this)
-
+                    .title(R.string.progress_dialog)
                     .content(R.string.please_wait)
                     .progress(true, 0)
                     .show();
         } else {
-//            .title(R.string.progress_dialog)
             new MaterialDialog.Builder(this)
-
+                    .title(R.string.progress_dialog)
                     .content(R.string.please_wait)
                     .contentGravity(GravityEnum.CENTER)
                     .progress(false, 150, true)