-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implement click test2 #22747
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
base: master
Are you sure you want to change the base?
Implement click test2 #22747
Conversation
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.
Do we need this in the project, or will it be added programmatically before test?
| try { | ||
| fos = new FileOutputStream(outputFile); | ||
| fos.write(jsonString.getBytes()); | ||
| } catch (IOException e) { | ||
| PlatformUtil.getLog(FileUtils.class).error(e); | ||
| } finally { |
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.
We could use Algorithms.streamCopy & Algorithms.closeStream for cleaner code
| app.getString(R.string.transport_nearby_routes), null, | ||
| MenuObjectUtils.getMenuObjectsNamesByComma(menuObjects), | ||
| getWithinCollapsableView(menuObjects), true, null); | ||
| getWithinCollapsableView(menuObjects), true, null, "ic_action_pin_location"); |
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.
Looks somewhat harder to read/maintain, as we have to pass one more parameter, same as icon
No description provided.