Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit e6d0da3

Browse files
authored
Merge pull request #77 from amardeshbd/minor-crashfix
[FIXED] A crash that was regressed due to changes in PR 73
2 parents 1da61f5 + 94bbe08 commit e6d0da3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/com/hossainkhan/android/demo/layoutpreview/LayoutPreviewBaseActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ open class LayoutPreviewBaseActivity : AppCompatActivity() {
162162
builder.setShowTitle(false)
163163
.addDefaultShareMenuItem()
164164
val customTabsIntent = builder.build()
165-
customTabsIntent.launchUrl(applicationContext, Uri.parse(viewModel.layoutUrl))
165+
customTabsIntent.launchUrl(this, Uri.parse(viewModel.layoutUrl))
166166
}
167167

168168

app/src/main/res/layout/preview_virtual_helper_group.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
android:layout_margin="16dp"
2525
android:animateLayoutChanges="true">
2626

27-
<!-- This virtual helper has `constraint_referenced_ids` to multiple views to apply visibility to all of them -->
27+
<!-- This virtual helper has `constraint_referenced_ids` to
28+
multiple views to apply visibility to all of them -->
2829
<androidx.constraintlayout.widget.Group
2930
android:id="@+id/visual_group"
3031
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)