You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
title ="Additional Resources: Tech Talks & Blogs",
209
+
description ="External resources on constraint layout. Tech talks on YouTube or blogs.")
201
210
202
211
203
212
/*
@@ -223,7 +232,7 @@ class LayoutDataStore @Inject constructor(
223
232
* Returns Github URL for layout resource file for this project.
224
233
*
225
234
* @param layoutResourceId The layout resource ID to generate the URL for.
226
-
* @return The URL to load the layout blob file.
235
+
* @return The URL to load the layout blob file. For example: https://github.com/amardeshbd/android-constraint-layout-cheatsheet/blob/master/app/src/main/res/layout/preview_dimension_ratio.xml
Copy file name to clipboardExpand all lines: app/src/main/java/com/hossainkhan/android/demo/ui/browse/DefaultLayoutBrowseNavigator.kt
+7
Original file line number
Diff line number
Diff line change
@@ -35,4 +35,11 @@ class DefaultLayoutBrowseNavigator @Inject constructor(private val context: Cont
35
35
startIntent.flags =Intent.FLAG_ACTIVITY_NEW_TASK
36
36
context.startActivity(startIntent)
37
37
}
38
+
39
+
overridefun <T> loadActivity(clazz:Class<T>) {
40
+
val startIntent =Intent(context, clazz)
41
+
// FIX IT: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
0 commit comments