Skip to content

Commit

Permalink
feat: modal updates (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinpaypal committed Mar 18, 2024
1 parent a9a3fb8 commit 101ade5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
10 changes: 4 additions & 6 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ android {

tasks.register('addPreCommitGitHookOnBuild') {
group 'git'
if (! project.file('../.git/hooks/pre-commit').exists()) {
println("⚈ ⚈ ⚈ Running Add Pre Commit Git Hook Script on Build ⚈ ⚈ ⚈")
exec {
commandLine("cp", "../scripts/pre-commit", "../.git/hooks")
}
println("✅ Added Pre Commit Git Hook Script.")
println("⚈ ⚈ ⚈ Running Add Pre Commit Git Hook Script on Build ⚈ ⚈ ⚈")
exec {
commandLine("cp", "../scripts/pre-commit", "../.git/hooks")
}
println("✅ Added Pre Commit Git Hook Script.")
}

preBuild.doFirst { addPreCommitGitHookOnBuild }
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/paypal/messages/ModalFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ internal class ModalFragment(
behavior.isFitToContents = false
behavior.expandedOffset = offsetTop
behavior.isHideable = true
behavior.isDraggable = true
behavior.isDraggable = false
behavior.state = BottomSheetBehavior.STATE_EXPANDED
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
android:layout_width="64dip"
android:layout_height="64dip"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginTop="12dip"
android:layout_marginRight="12dip"
android:layout_marginEnd="12dip"
android:background="@drawable/ic_close"
android:scaleType="center"
android:contentDescription="Close modal" />
Expand Down
4 changes: 4 additions & 0 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ echo git diff --staged --name-only | grep -E '(library|demo)'
echo ""
echo "Running ktFormat to fix any auto-fixable issues"

git stash --quiet --keep-index

./gradlew ktFormat

git add library/
git add demo/

git stash pop --quiet

echo "***********************************************"
echo "Added changed files to commit"
echo ""
Expand Down

0 comments on commit 101ade5

Please sign in to comment.