Fix ImageViewTest#testClearColorFilte

Bug 2558669

Change-Id: I6de5ed3ef25877bc518cfd97a8d5bbb88324d9c3
diff --git a/tests/tests/widget/src/android/widget/cts/ImageViewTest.java b/tests/tests/widget/src/android/widget/cts/ImageViewTest.java
index 2bf064c..5214b50 100644
--- a/tests/tests/widget/src/android/widget/cts/ImageViewTest.java
+++ b/tests/tests/widget/src/android/widget/cts/ImageViewTest.java
@@ -478,10 +478,10 @@
     public void testClearColorFilter() {
         MockDrawable drawable = new MockDrawable();
         ColorFilter cf = new ColorFilter();
-        drawable.setColorFilter(cf);
 
         ImageView imageView = new ImageView(mActivity);
         imageView.setImageDrawable(drawable);
+        imageView.setColorFilter(cf);
 
         imageView.clearColorFilter();
         assertNull(drawable.getColorFilter());