Loading src/com/android/settings/search/Index.java +6 −6 Original line number Diff line number Diff line Loading @@ -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(); } Loading Loading
src/com/android/settings/search/Index.java +6 −6 Original line number Diff line number Diff line Loading @@ -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(); } Loading