Saving instance state so that widget cache is updated properly before rebind

List widgets use a static cache which is initialized as part of saveInstanceState.
Calling this ensures that no extra binder calls are made on rotation

Bug: 134707989
Change-Id: I8d4450134168bd412ba2911c57354a603868bc47
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 57a9b16..9db2ec0 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -465,6 +465,9 @@
         reapplyUi();
         mDragLayer.recreateControllers();
 
+        // Calling onSaveInstanceState ensures that static cache used by listWidgets is
+        // initialized properly.
+        onSaveInstanceState(new Bundle());
         // TODO: We can probably avoid rebind when only screen size changed.
         rebindModel();
     }