-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove redundant version checks #3849
Remove redundant version checks #3849
Conversation
@@ -47,7 +47,7 @@ | |||
@ExperimentalBadgeUtils | |||
public class BadgeUtils { | |||
|
|||
public static final boolean USE_COMPAT_PARENT = VERSION.SDK_INT < VERSION_CODES.JELLY_BEAN_MR2; | |||
public static final boolean USE_COMPAT_PARENT = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know how to proceed here: BadgeUtils
is a public class, and so is this USE_COMPAT_PARENT
constant.
Can I simply remove USE_COMPAT_PARENT
(since BadgeUtils
is experimental)? Or should I deprecate it for removal in a future release?
Did you have time to have a look at this PR @hunterstich? |
b8f91bb
to
ae5e42b
Compare
9528f65
to
7f85347
Compare
7f85347
to
40a9bca
Compare
40a9bca
to
8e86a89
Compare
e2af7d5
to
9bb04c1
Compare
I've fixed the conflict in |
9bb04c1
to
4a034c4
Compare
a23209a
to
a573f17
Compare
a573f17
to
ca16c05
Compare
@hunterstich I've updated the PR and removed some additional legacy code. |
Thank you for working on this! I removed the change on the Badge file since it'd be best to refactor badge instead of just having a variable set to false, so that should be done in a separate change. |
Are you open for a PR to remove |
sure if you'd like to contribute feel free to do so and we'll happily review it! :) |
I'll prepare a PR then 🙂 |
that's right, we should remove the checks for |
Ok, #4170 is ready when you have time to have a look 🙂 |
Now that the minimum SDK version of Material Components is 19, there was a lot of code that could be simplified or removed.