Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APKs: |
|
cc:@hichamboushaba 👋🏼 |
ashiagr
left a comment
There was a problem hiding this comment.
Changes look good overall, I left two questions for you to consider.
Also, we might want to create a PR in WordPress-Utils to remove deprecated methods. Let me know if you need help with it. You can add me as a reviewer.
libs/editor/WordPressEditor/src/main/java/org/wordpress/android/editor/EditorMediaUtils.java
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/util/DisplayUtilsWrapper.kt
Outdated
Show resolved
Hide resolved
Yup, Thanks. I have created a PR for the same here |
Parent #16073
As part of the changes for Android 12. This PR replaces the usages of the deprecated functions in
DisplayUtils.ktin the WordPress Utils library.Functions replaced in the PR are
DisplayUtils.getDisplayPixelWidth(context)withDisplayUtils.getWindowPixelWidth(context)DisplayUtils.getDisplayPixelHeight(context)withDisplayUtils.getWindowPixelHeight(context)DisplayUtils.getDisplayPixelSize(context)withDisplayUtils.getWindowSize(context)To test:
Testing instructions
The APIs are used in the following places
MediaBrowserActivity.javaMediaGridAdapter.javaMediaPreviewFragment.javaMediaSettingsActivity.javaMediaSettingsActivity.javaEditPostActivity.javaPostListFragment.ktEditorPhotoPicker.ktReaderPhotoViewerFragment.javaReaderPostListFragment.javaReaderResourceVars.javaReaderCommentAdapter.javaReaderPostAdapter.javaReaderPostTagsUiStateBuilder.ktHistoryDetailContainerFragmentEditorMediaUtils.javaStockMediaPickerActivity.javaReaderThumbnailStrip.javaIn order to confirm that there is no regression issue we can test the following places.
Test 1 - Test on Android 11 and Android 12
ReaderPhotoViewerFragment.javaTest 2
EditorMediaUtils.javaTest 3
ReaderCommentAdapter.javaRegression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txtif necessary.