@@ -161,7 +161,7 @@ private static String getPlatformDirFromHostOut(File out) {
161161 if (!out .isDirectory ()) {
162162 return null ;
163163 }
164- File sdkDir = new File (out , "sdk" + File . separator + "sdk" );
164+ File sdkDir = new File (out , "sdk" );
165165 if (!sdkDir .isDirectory ()) {
166166 // The directory we thought that should contain the sdk is not a directory.
167167 return null ;
@@ -283,14 +283,14 @@ public void testRendering() throws ClassNotFoundException {
283283 }
284284
285285 /**
286- * Uses Theme.Material and Target sdk version as 21 .
286+ * Uses AppTheme and Target sdk version as 19 .
287287 */
288288 private SessionParams getSessionParams (LayoutPullParser layoutParser ,
289289 ConfigGenerator configGenerator , LayoutLibTestCallback layoutLibCallback ) {
290290 FolderConfiguration config = configGenerator .getFolderConfig ();
291291 ResourceResolver resourceResolver =
292292 ResourceResolver .create (mProjectResources .getConfiguredResources (config ),
293- mFrameworkRepo .getConfiguredResources (config ), "Theme.Material " , false );
293+ mFrameworkRepo .getConfiguredResources (config ), "AppTheme " , true );
294294
295295 return new SessionParams (
296296 layoutParser ,
@@ -300,7 +300,7 @@ private SessionParams getSessionParams(LayoutPullParser layoutParser,
300300 resourceResolver ,
301301 layoutLibCallback ,
302302 0 ,
303- 21 , // TODO: Make it more configurable to run tests for various versions.
303+ 19 , // TODO: Make it more configurable to run tests for various versions.
304304 getLayoutLog ());
305305 }
306306
0 commit comments