+ public static StoragePermissionDialog displayDialog(int requestType) {
+ // Create an arguments bundle.
+ Bundle argumentsBundle = new Bundle();
+
+ // Store the save type in the bundle.
+ argumentsBundle.putInt("request_type", requestType);
+
+ // Create a new instance of the storage permission dialog.
+ StoragePermissionDialog storagePermissionDialog = new StoragePermissionDialog();
+
+ // Add the arguments bundle to the new dialog.
+ storagePermissionDialog.setArguments(argumentsBundle);
+
+ // Return the new dialog.
+ return storagePermissionDialog;
+ }
+