+ public static StoragePermissionDialog displayDialog(int saveType) {
+ // Create an arguments bundle.
+ Bundle argumentsBundle = new Bundle();
+
+ // Store the save type in the bundle.
+ argumentsBundle.putInt("save_type", saveType);
+
+ // 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;
+ }
+