Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 802b2f85 authored by gaochong's avatar gaochong Committed by android-build-merger
Browse files

Merge "Handle SubSettings instance leaks in Index.java" am: 527b2b22 am: bf4a67ec

am: 28688c3b

Change-Id: I31cd7f083c529342ac2b07f054d82b4a9191937b
parents 6446d2f0 28688c3b
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -216,21 +216,21 @@ public class Index {
     * A basic singleton
     */
    public static Index getInstance(Context context) {
        if (sInstance == null) {
            synchronized (Index.class) {
                if (sInstance == null) {
                    sInstance = new Index(context.getApplicationContext(), BASE_AUTHORITY);
                }
            }
        }
        return sInstance;
    }

    public Index(Context context, String baseAuthority) {
    private Index(Context context, String baseAuthority) {
        mContext = context;
        mBaseAuthority = baseAuthority;
    }

    public void setContext(Context context) {
        mContext = context;
    }

    public boolean isAvailable() {
        return mIsAvailable.get();
    }