prevent AppDetailsHeaderFragment crash in startProgress()
The real solution would involve figuring out where to handle this in the right spot in the lifecycle. Since AppDetails is being totally replaced, this is just to stop the crashing. closes #802
This commit is contained in:
parent
b9dad4bce6
commit
096b7132c4
@ -1525,8 +1525,10 @@ public class AppDetails extends AppCompatActivity {
|
||||
|
||||
public void startProgress(boolean allowCancel) {
|
||||
cancelButton.setVisibility(allowCancel ? View.VISIBLE : View.GONE);
|
||||
showIndeterminateProgress(getString(R.string.download_pending));
|
||||
updateViews();
|
||||
if (isAdded()) {
|
||||
showIndeterminateProgress(getString(R.string.download_pending));
|
||||
updateViews();
|
||||
}
|
||||
}
|
||||
|
||||
private void showIndeterminateProgress(String message) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user