File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/src/main/java/com/samsung/microbit/ui Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -317,17 +317,21 @@ public static void safelyStartActivityToastOpenLink( Context context) {
317
317
safelyStartActivityToast ( context , context .getString (R .string .unable_to_open_link ));
318
318
}
319
319
320
+ // public static boolean safelyStartActivityDebugFail = false;
321
+
320
322
// Wrap startActivity and startActivityForResult
321
323
// Call resolveActivity and catch exception from startActivity
322
324
// Return non-zero error on fail
323
325
// When startActivityForResult fails, the caller likely
324
326
// needs to add code similar to the cancel case in onActivityResult
325
327
public static int safelyStartActivity ( Context context , boolean report , Intent intent ,
326
328
boolean forResult , int requestCode , Bundle options ) {
327
- // if ( report) {
328
- // safelyStartActivityToastGeneric( context);
329
+ // if ( safelyStartActivityDebugFail) {
330
+ // if (report) {
331
+ // safelyStartActivityToastGeneric(context);
332
+ // }
333
+ // return 4;
329
334
// }
330
- // return 4;
331
335
332
336
int error = 0 ;
333
337
ComponentName componentName = intent .resolveActivity ( context .getPackageManager ());
You can’t perform that action at this time.
0 commit comments