Skip to content

Commit

Permalink
ActivityUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
yechaoa committed Sep 14, 2017
1 parent accaaac commit d85ca5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/com/yechaoa/yutils/YUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ public static void showLoading(String msg) {
progressDialog.show();
}

public static void showLoading(Activity activity,String msg) {
progressDialog = ProgressDialog.show(activity, "", msg, true, true);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
}

/**
* dismissLoading
*/
Expand Down

0 comments on commit d85ca5f

Please sign in to comment.