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

Commit b7245a56 authored by Catherine Liang's avatar Catherine Liang Committed by Android (Google) Code Review
Browse files

Merge "Enable widget dark theme preview" into main

parents e630ccd3 3ff32a37
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -8483,8 +8483,11 @@ public class RemoteViews implements Parcelable, Filter {
            }
            }
            try {
            try {
                LoadedApk.checkAndUpdateApkPaths(mApplication);
                LoadedApk.checkAndUpdateApkPaths(mApplication);
                return context.createApplicationContext(mApplication,
                Context applicationContext = context.createApplicationContext(mApplication,
                        Context.CONTEXT_RESTRICTED);
                        Context.CONTEXT_RESTRICTED);
                // Get the correct apk paths while maintaining the current context's configuration.
                return applicationContext.createConfigurationContext(
                        context.getResources().getConfiguration());
            } catch (NameNotFoundException e) {
            } catch (NameNotFoundException e) {
                Log.e(LOG_TAG, "Package name " + mApplication.packageName + " not found");
                Log.e(LOG_TAG, "Package name " + mApplication.packageName + " not found");
            }
            }