Show all mailto: handlers, but dim unavailable ones.
Based on updated design doc, Compose Email settings should always be
shown even if there is only one Mail client app installed. The settings
screen should show all but dim the unavailable ones.
BUG=711511
TEST=Delete one or both of Mail and Gmail app and verify the Settings dialog. Check VoiceOver usage as well.
Review-Url: https://codereview.chromium.org/2889183005
Cr-Commit-Position: refs/heads/master@{#473681}
Committed: https://chromium.googlesource.com/chromium/src/+/d60b42a00189e71d3a72c3c1ee079c1f269c1fef
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/content_settings_collection_view_controller_unittest.mm File ios/chrome/browser/ui/settings/content_settings_collection_view_controller_unittest.mm (right): https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/content_settings_collection_view_controller_unittest.mm#newcode49 ios/chrome/browser/ui/settings/content_settings_collection_view_controller_unittest.mm:49: !experimental_flags::IsNativeAppLauncherEnabled(); Note that there was a bug which was ...
3 years, 7 months ago
(2017-05-19 18:22:03 UTC)
#2
lgtm https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm File ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm (right): https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm#newcode9 ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:9: #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" If all you need is greyColor, ...
3 years, 7 months ago
(2017-05-22 12:50:37 UTC)
#3
lgtm
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
File
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm
(right):
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:9:
#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
If all you need is greyColor, you should be able to depend directly on the MDC
Palette component. (The +CrAdditions are there for red/green/blue/yellow
specifically.)
Changes here and in the BUILD.gn file.
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:96:
// Do nothing if the handler for the tapped row is not available.
Consider handling this in shouldSelectItemAtIndexPath instead. If you put the
logic is there, it may also disable the "ink" effect for free. (We probably
don't want the ink ripple to fire for dimmed-out cells.)
pkl (ping after 24h if needed)
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm File ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm (right): https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm#newcode9 ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:9: #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" On 2017/05/22 12:50:37, rohitrao (ping after 24h) ...
3 years, 7 months ago
(2017-05-22 20:27:09 UTC)
#4
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
File
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm
(right):
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:9:
#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
On 2017/05/22 12:50:37, rohitrao (ping after 24h) wrote:
> If all you need is greyColor, you should be able to depend directly on the MDC
> Palette component. (The +CrAdditions are there for red/green/blue/yellow
> specifically.)
>
> Changes here and in the BUILD.gn file.
Thanks! Makes sense.
https://codereview.chromium.org/2889183005/diff/20001/ios/chrome/browser/ui/s...
ios/chrome/browser/ui/settings/compose_email_handler_collection_view_controller.mm:96:
// Do nothing if the handler for the tapped row is not available.
On 2017/05/22 12:50:37, rohitrao (ping after 24h) wrote:
> Consider handling this in shouldSelectItemAtIndexPath instead. If you put the
> logic is there, it may also disable the "ink" effect for free. (We probably
> don't want the ink ripple to fire for dimmed-out cells.)
Added shouldSelectItemAtIndexPath:, however it does not stop the ink ripple.
To stop ink ripple, I added shouldHighlightItemAtIndexPath: as well.
pkl (ping after 24h if needed)
The CQ bit was checked by pkl@chromium.org
3 years, 7 months ago
(2017-05-22 20:27:14 UTC)
#5
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495484834946230, "parent_rev": "08b41b09d06d975f92f4d7e5cadfcfc86d04fdde", "commit_rev": "d60b42a00189e71d3a72c3c1ee079c1f269c1fef"}
3 years, 7 months ago
(2017-05-22 20:40:18 UTC)
#8
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495484834946230,
"parent_rev": "08b41b09d06d975f92f4d7e5cadfcfc86d04fdde", "commit_rev":
"d60b42a00189e71d3a72c3c1ee079c1f269c1fef"}
commit-bot: I haz the power
Description was changed from ========== Show all mailto: handlers, but dim unavailable ones. Based on ...
3 years, 7 months ago
(2017-05-22 20:40:30 UTC)
#9
Message was sent while issue was closed.
Description was changed from
==========
Show all mailto: handlers, but dim unavailable ones.
Based on updated design doc, Compose Email settings should always be
shown even if there is only one Mail client app installed. The settings
screen should show all but dim the unavailable ones.
BUG=711511
TEST=Delete one or both of Mail and Gmail app and verify the Settings dialog.
Check VoiceOver usage as well.
==========
to
==========
Show all mailto: handlers, but dim unavailable ones.
Based on updated design doc, Compose Email settings should always be
shown even if there is only one Mail client app installed. The settings
screen should show all but dim the unavailable ones.
BUG=711511
TEST=Delete one or both of Mail and Gmail app and verify the Settings dialog.
Check VoiceOver usage as well.
Review-Url: https://codereview.chromium.org/2889183005
Cr-Commit-Position: refs/heads/master@{#473681}
Committed:
https://chromium.googlesource.com/chromium/src/+/d60b42a00189e71d3a72c3c1ee07...
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/d60b42a00189e71d3a72c3c1ee079c1f269c1fef
3 years, 7 months ago
(2017-05-22 20:40:32 UTC)
#10
Issue 2889183005: Show all mailto: handlers, but dim unavailable ones.
(Closed)
Created 3 years, 7 months ago by pkl (ping after 24h if needed)
Modified 3 years, 7 months ago
Reviewers: jif, rohitrao (ping after 24h)
Base URL:
Comments: 5