content: package androidx.core.content;
  
  import android.content.SharedPreferences;
  
  @Deprecated
  public final class SharedPreferencesCompat {
  
      @Deprecated
      public static final class EditorCompat {
          private static EditorCompat sInstance;
          private final Helper mHelper = new Helper();
  
          private static class Helper {
              Helper() {
              }
  
              public void apply(SharedPreferences.Editor editor) {
                  try {
                      editor.apply();
                  } catch (AbstractMethodError e) {
                      editor.commit();
                  }
              }
          }
  
          private EditorCompat() {
          }
  
          @Deprecated
          public static EditorCompat getInstance() {
              if (sInstance == null) {
                  sInstance = new EditorCompat();
              }
              return sInstance;
          }
  
          @Deprecated
          public void apply(SharedPreferences.Editor editor) {
              this.mHelper.apply(editor);
          }
      }
  
      private SharedPreferencesCompat() {
      }
  }
  