code: static void reset(Context context) {
          Context appContext = context.getApplicationContext();
          String key = appContext.getString(R.string.wings__retry_policy_consecutive_fails);
  
          // Synchronously reset consecutive fail count.
          SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(appContext);
          Editor editor = preferences.edit();
          editor.putInt(key, 0);
          editor.commit();
      }
docs: Resets the internal counter. This should be called whenever a new record is added, and whenever all
  {@link ShareRequest} completed successfully.
  
  @param context the {@link Context}.