-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Refactor: Rename Constants to Follow CamelCase Naming Convention #6126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5c1b031
Rename Constants to Follow Kotlin Naming Conventions
Akshaykomar890 2f899ec
Update Project_Default.xml
Akshaykomar890 a7c1842
Refactor variable names to adhere to naming conventions
Akshaykomar890 570ed58
Refactor Dialog View Initialization with Null-Safe Calls
Akshaykomar890 83bef3a
Merge branch 'main' into main
Akshaykomar890 abef27a
Refactor Unit Test: Replace Unsafe Casting with Type-Safe Mocking for…
Akshaykomar890 5e24bde
Merge branch 'commons-app:main' into main
Akshaykomar890 f2ef4bb
Update NearbyParentFragmentUnitTest.kt
Akshaykomar890 7edf393
Refactor: Rename Constants to Follow CamelCase Naming Convention
Akshaykomar890 6d31048
Merge branch 'main' into main
Akshaykomar890 8a76209
Replace private val with const val for URL constants in QuizController
Akshaykomar890 ecf5437
Merge remote-tracking branch 'origin/main'
Akshaykomar890 d4de3cd
Renaming the constant to use UPPER_SNAKE_CASE
Akshaykomar890 50c900e
Merge branch 'main' into main
Akshaykomar890 6d17621
Merge remote-tracking branch 'origin/main'
Akshaykomar890 0c8763b
Renaming the constant to use UPPER_SNAKE_CASE
Akshaykomar890 7d6a460
Update Done
Akshaykomar890 d4950b1
Merge branch 'main' into main
nicolas-raoul cb41668
**Refactor: Convert `minimumThresholdForSwipe` to a compile-time cons…
Akshaykomar890 dd46bc7
Merge remote-tracking branch 'origin/main'
Akshaykomar890 35fa618
Merge branch 'main' into main
Akshaykomar890 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ abstract class SwipableCardView @JvmOverloads constructor( | |
|
||
private var x1 = 0f | ||
private var x2 = 0f | ||
private val MINIMUM_THRESHOLD_FOR_SWIPE = 100f | ||
private val minimumThresholdForSwipe = 100f | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one also should be const val, as it will not change at runtime. |
||
|
||
init { | ||
interceptOnTouchListener() | ||
|
@@ -45,7 +45,7 @@ abstract class SwipableCardView @JvmOverloads constructor( | |
isSwipe = deltaX != 0f | ||
} | ||
} | ||
if (isSwipe && pixelToDp(abs(deltaX)) > MINIMUM_THRESHOLD_FOR_SWIPE) { | ||
if (isSwipe && pixelToDp(abs(deltaX)) > minimumThresholdForSwipe) { | ||
onSwipe(v) | ||
return@setOnTouchListener true | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.