From 0d149e6f93656929a42221a40cc22d935472e805 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 14 Jul 2023 13:02:22 -0700 Subject: [PATCH] Exposing the layout URI builder method, so that it can be used in tests Bug: 286558846 Test: N/A Flag: N/A Change-Id: Ib39c0477bb977ac2eb3e484463bc3ea770dc4069 --- src/com/android/launcher3/model/ModelDbController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/model/ModelDbController.java b/src/com/android/launcher3/model/ModelDbController.java index 1b1b38f4fd..e10e72d61b 100644 --- a/src/com/android/launcher3/model/ModelDbController.java +++ b/src/com/android/launcher3/model/ModelDbController.java @@ -466,7 +466,7 @@ public class ModelDbController { () -> parser, AutoInstallsLayout.TAG_WORKSPACE); } - private static Uri getLayoutUri(String authority, Context ctx) { + public static Uri getLayoutUri(String authority, Context ctx) { InvariantDeviceProfile grid = LauncherAppState.getIDP(ctx); return new Uri.Builder().scheme("content").authority(authority).path("launcher_layout") .appendQueryParameter("version", "1")