Skip to content

Commit

Permalink
fix: layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Jan 5, 2025
1 parent b78b2cf commit 78b7d99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal fun FragmentActivity.pickIcon(icon: Icon, drawable: Drawable?, pickerKe
intent.putExtra(
"icon",
if (bitmap.isRecycled) bitmap
else bitmap.copy(bitmap.config, false)
else bitmap.config?.let { config -> bitmap.copy(config, false) } ?: bitmap
)
} catch (_: Exception) {
}
Expand Down
3 changes: 2 additions & 1 deletion library/src/main/res/layout/activity_blueprint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_height="wrap_content"
android:clipChildren="false"
android:transitionName="appbar"
android:fitsSystemWindows="true"
tools:ignore="UnusedAttribute">

<androidx.appcompat.widget.Toolbar
Expand Down Expand Up @@ -55,4 +56,4 @@
app:layout_anchorGravity="center_horizontal|bottom"
app:showMotionSpec="@animator/efab_show_animator" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
3 changes: 2 additions & 1 deletion library/src/main/res/layout/activity_icons_category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_height="wrap_content"
android:clipChildren="false"
android:transitionName="appbar"
android:fitsSystemWindows="true"
tools:ignore="UnusedAttribute">

<androidx.appcompat.widget.Toolbar
Expand All @@ -30,4 +31,4 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 comments on commit 78b7d99

Please sign in to comment.