Merge "Set default value of gridName to current grid name in GridOptionsProvider" into ub-launcher3-master

This commit is contained in:
Tracy Zhou authored and Android (Google) Code Review committed 2020-03-19 02:17:19 +00:00
commit 269f30fb9b
2 files changed
+11 -4

No files matched your search

@@ -32,8 +32,11 @@ public class PreviewSurfaceRenderer {
/** Handle a received surface view request. */
public static void render(Context context, Bundle bundle) {
final String gridName = bundle.getString("name");
String gridName = bundle.getString("name");
bundle.remove("name");
if (gridName == null) {
gridName = InvariantDeviceProfile.getCurrentGridName(context);
}
final InvariantDeviceProfile idp = new InvariantDeviceProfile(context, gridName);
MAIN_EXECUTOR.execute(() -> {