private static void saveConfirmedStackTraces(WeakReference<Context> weakContext){
  Context context=null;
  if (weakContext != null) {
    context=weakContext.get();
    if (context != null) {
      try {
        String[] filenames=searchForReport();
        SharedPreferences preferences=context.getSharedPreferences(ARTISAN_SDK,Context.MODE_PRIVATE);
        Editor editor=preferences.edit();
        editor.putString("ConfirmedFilenames",joinArray(filenames,"|"));
        editor.apply();
      }
 catch (      Exception e) {
      }
    }
  }
}

private static void saveConfirmedStackTraces ( WeakReference < Context > weakContext ) { Context context = null ; if ( weakContext != null ) { context = weakContext . get ( ) ; if ( context != null ) { try { String [ ] filenames = searchForReport ( ) ; SharedPreferences preferences = context . getSharedPreferences ( ARTISAN_SDK , Context . MODE_PRIVATE ) ; Editor editor = preferences . edit ( ) ; editor . putString ( "ConfirmedFilenames" , joinArray ( filenames , "|" ) ) ; editor . apply ( ) ; } catch ( Exception e ) { } } } }
saves the list of the stack traces ' file names in shared preferences .
