Skip to content

Commit

Permalink
Fixed #1163 - Restoring backup crash.
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <[email protected]>
  • Loading branch information
amrhossamdev authored and aaronbrethorst committed Mar 15, 2024
1 parent f5cc5ef commit 69827e7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ public void onRequestPermissionsResult(
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_CODE_RESTORE_BACKUP) {
BackupUtils.restore(this, data.getData());
if(data != null){
BackupUtils.restore(this, data.getData());
}
}
}

Expand Down

0 comments on commit 69827e7

Please sign in to comment.