Skip to content

Commit

Permalink
npe checks on pp handling (#691)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Carra <rksh@wigle.net>
  • Loading branch information
rksh and Andy Carra authored Feb 21, 2024
1 parent 95ae33e commit 5186b30
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,18 @@ public void run() {

protected void reactivateProgressBar(final int id) {
activity.runOnUiThread(() -> {
pp.show();
setProgressStatus(id);
pp.setIndeterminate();
if (null != pp) {
pp.show();
setProgressStatus(id);
pp.setIndeterminate();
}
});
}

protected void setProgressIndeterminate() {
pp.setIndeterminate();
if (null != pp) {
pp.setIndeterminate();
}
}

protected abstract void onPreExecute();
Expand Down

0 comments on commit 5186b30

Please sign in to comment.