Register receivers from ViewFlipper with an explicit Handler

Make sure that the BroadcastReceiver registered by ViewFlipper
enforces that messages come in on the correct (UI) thread.

Bug 11228463

Change-Id: I97f2a1c392f9c58a99afebc60170c9656bba86ad
diff --git a/core/java/android/widget/ b/core/java/android/widget/
index 061bb00..b152297 100644
--- a/core/java/android/widget/
+++ b/core/java/android/widget/
@@ -90,7 +90,7 @@
         final IntentFilter filter = new IntentFilter();
-        getContext().registerReceiver(mReceiver, filter);
+        getContext().registerReceiver(mReceiver, filter, null, mHandler);
         if (mAutoStart) {
             // Automatically start when requested