From 89866464fdf93a5565cf0535caa20bae2886d3c6 Mon Sep 17 00:00:00 2001 From: BlueRiverInteractive Date: Sun, 3 May 2015 01:22:03 +0200 Subject: [PATCH] Fix TODOs of UICatalog. --- .../uicatalog/viewcontrollers/AAPLButtonViewController.java | 2 +- .../uicatalog/viewcontrollers/AAPLImageViewController.java | 4 ++-- .../viewcontrollers/AAPLSegmentedControlViewController.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLButtonViewController.java b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLButtonViewController.java index cb6855ad..41c08f9f 100644 --- a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLButtonViewController.java +++ b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLButtonViewController.java @@ -81,7 +81,7 @@ private void configureImageButton() { imageButton.setImage(imageButtonNormalImage, UIControlState.Normal); // Add an accessibility label to the image. -// imageButton.setAccessibilityLabel("X_Button"); TODO + imageButton.setAccessibilityLabel("X Button"); imageButton.addOnTouchUpInsideListener(this); } diff --git a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLImageViewController.java b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLImageViewController.java index 3657dcd6..db77d4c9 100644 --- a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLImageViewController.java +++ b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLImageViewController.java @@ -55,7 +55,7 @@ public void viewDidLoad() { imageView.setAnimationDuration(5); imageView.startAnimating(); -// imageView.setAccessibilityElement(true); TODO -// imageView.setAccessibilityLabel("Animated"); TODO + imageView.setAccessibilityElement(true); + imageView.setAccessibilityLabel("Animated"); } } diff --git a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLSegmentedControlViewController.java b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLSegmentedControlViewController.java index f63cbb5f..c21f651a 100644 --- a/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLSegmentedControlViewController.java +++ b/UICatalog/src/main/java/org/robovm/samples/uicatalog/viewcontrollers/AAPLSegmentedControlViewController.java @@ -78,7 +78,7 @@ private void configureCustomSegmentsSegmentedControl() { int i = 0; for (Map.Entry entry : imageToAccessibilityLabelMappings.entrySet()) { UIImage image = UIImage.create(entry.getKey()); -// image.setAccessibilityLabel(entry.getValue()); TODO + image.setAccessibilityLabel(entry.getValue()); customSegmentsSegmentedControl.setImage(image, i); i++;