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

[TIMOB-25526] Android: Listview when showing image with defaultImage causing inconsistency on image #9615

Merged
merged 10 commits into from Dec 14, 2017

Conversation

ypbnv
Copy link
Contributor

@ypbnv ypbnv commented Nov 17, 2017

JIRA: https://jira.appcelerator.org/browse/TIMOB-25526

Description:
Add image property to the list to be set when a view is recycled.
Fix a typo in a comment.

Test case:
In the JIRA ticket.

Copy link
Contributor

@garymathews garymathews left a comment

Choose a reason for hiding this comment

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

CR: PASS

@hansemannn hansemannn added this to the 7.0.1 milestone Nov 29, 2017
@build
Copy link
Contributor

build commented Dec 8, 2017

Fails
🚫

📝 Formatting reported as incorrect on the following files:

  • android/modules/ui/src/java/ti/modules/titanium/ui/widget/listview/TiListView.java
    You can fix the formatting by running: npx clang-format -style=file -i <filepath>
Messages
📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@ypbnv
Copy link
Contributor Author

ypbnv commented Dec 11, 2017

@garymathews, @jquick-axway I was not able to come up with reliable unit tests. Any suggestions?

@lokeshchdhry
Copy link
Contributor

FR Passed.

Theimage is refreshed successfully when the listview is scrolled.

Studio Ver: 5.0.0.201712081732
SDK Ver: 7.0.0 local build
OS Ver: 10.12.3
Xcode Ver: Xcode 8.3.3
Appc NPM: 4.2.11
Appc CLI: 7.0.0
Ti CLI Ver: 5.0.14
Alloy Ver: 1.10.10
Node Ver: 8.9.1
Java Ver: 1.8.0_101
Devices: ⇨ google Pixel --- Android 7.1.1
⇨ google Nexus 5 --- Android 6.0.1

@jquick-axway
Copy link
Contributor

@ypbnv, @sgtcoolguy,

I don't think we can do a unit test for this on the JavaScript side. Our ListView does not provide APIs that give direct access to its views on purpose (so that they can be recycled for performance reasons). This should be tested manually by taking a screenshot of the results and then measure the image's pixel dimensions via Apple "Preview" or MS Paint.

@ypbnv ypbnv added the no tests label Dec 12, 2017
@build build added the android label Dec 12, 2017
@lokeshchdhry
Copy link
Contributor

@sgtcoolguy , I think we can merge this as according to @ypbnv & @jquick-axway there can't be unit tests for this.

@build build added the android label Dec 13, 2017
@sgtcoolguy
Copy link
Contributor

ok, well it's complaining about formatting of one file, and a unit test failed. At least the formatting should be fixed as per the instructions in the comment from danger.

@sgtcoolguy sgtcoolguy merged commit 8f6fbe8 into tidev:master Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants