Skip to content
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

Update min sdk version and remove redundant checks #2608

Merged
merged 1 commit into from
Mar 16, 2019

Conversation

maskaravivek
Copy link
Member

Description (required)

Fixes #1131

What changes did you make and why?

  • updated minSdk version
  • removed redundant checks for lower SDK versions

Tests performed (required)

built and ran the betaDebug variant of the app. It seems to be working fine.

@codecov-io
Copy link

codecov-io commented Mar 16, 2019

Codecov Report

Merging #2608 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2608      +/-   ##
=========================================
+ Coverage    2.69%   2.69%   +<.01%     
=========================================
  Files         258     258              
  Lines       12318   12303      -15     
  Branches     1117    1110       -7     
=========================================
  Hits          332     332              
+ Misses      11960   11945      -15     
  Partials       26      26
Impacted Files Coverage Δ
...main/java/fr/free/nrw/commons/utils/DateUtils.java 0% <0%> (ø) ⬆️
.../commons/contributions/ContributionController.java 0% <0%> (ø) ⬆️
...ee/nrw/commons/upload/SpinnerLanguagesAdapter.java 0% <0%> (ø) ⬆️
...e/nrw/commons/upload/UploadCategoriesRenderer.java 0% <0%> (ø) ⬆️
...ava/fr/free/nrw/commons/upload/UploadActivity.java 0% <0%> (ø) ⬆️
...ain/java/fr/free/nrw/commons/utils/DialogUtil.java 0% <0%> (ø) ⬆️
...ava/fr/free/nrw/commons/filepicker/FilePicker.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57e685c...43c5f85. Read the comment docs.

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
isActivityDestroyed = activity.isDestroyed();
}
boolean isActivityDestroyed = activity.isDestroyed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable probably not necessary after refactor

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this. The corresponding function is not getting used. Should it be removed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - let's do it in another PR

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
isActivityDestroyed = activity.isDestroyed();
}
isActivityDestroyed = activity.isDestroyed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable probably not necessary after refactor

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domdomegg This function is not getting used anywhere in the codebase. Is it fine if I remove the whole function altogether? Or should that be done in another PR?

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
isActivityDestroyed = activity.isDestroyed();
}
isActivityDestroyed = activity.isDestroyed();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable probably not necessary after refactor

Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 2.10.1-debug-minSdk~43c5f8550

Commons Beta upload

@domdomegg domdomegg merged commit 6cbce9d into commons-app:master Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants