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

Commit 74c1d328 authored by Jeff Brown's avatar Jeff Brown
Browse files

Avoid using hardcoded strings.

Bug: 7204211
Change-Id: Ida5f93719aad472964386f3591518547ddf32f94
parent 99f98bb1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -77,7 +77,8 @@ public class DreamBackend {

    public DreamBackend(Context context) {
        mContext = context;
        mDreamManager = IDreamManager.Stub.asInterface(ServiceManager.getService("dreams"));
        mDreamManager = IDreamManager.Stub.asInterface(
                ServiceManager.getService(Dream.DREAM_SERVICE));
        mComparator = new DreamInfoComparator(getDefaultDream());
    }

@@ -86,7 +87,7 @@ public class DreamBackend {
        ComponentName activeDream = getActiveDream();
        PackageManager pm = mContext.getPackageManager();
        Intent dreamIntent = new Intent(Intent.ACTION_MAIN)
                .addCategory("android.intent.category.DREAM");
                .addCategory(Dream.CATEGORY_DREAM);
        List<ResolveInfo> resolveInfos = pm.queryIntentServices(dreamIntent,
                PackageManager.GET_META_DATA);
        List<DreamInfo> dreamInfos = new ArrayList<DreamInfo>(resolveInfos.size());