am 00c22351: am 0c07334f: Merge "Enable hardware acceleration for drawer drag" into ub-gmail-ur14-dev

* commit '00c22351364176b216566d5e1d43256038604c6d':
  Enable hardware acceleration for drawer drag
diff --git a/src/com/android/mail/ui/FolderListFragment.java b/src/com/android/mail/ui/FolderListFragment.java
index 6acd39d..87f315c 100644
--- a/src/com/android/mail/ui/FolderListFragment.java
+++ b/src/com/android/mail/ui/FolderListFragment.java
@@ -842,6 +842,13 @@
         return anim;
     }
 
+    public void onDrawerDragStarted() {
+        Utils.enableHardwareLayer(mMiniDrawerView);
+        Utils.enableHardwareLayer(mListView);
+        // The drawer drag will always end with animating the drawers to their final states, so
+        // the animation will remove the hardware layer upon completion.
+    }
+
     public void onDrawerDrag(float percent) {
         mMiniDrawerView.setAlpha(1f - percent);
         mListView.setAlpha(percent);
diff --git a/src/com/android/mail/ui/TwoPaneController.java b/src/com/android/mail/ui/TwoPaneController.java
index abcadd6..c3d91a7 100644
--- a/src/com/android/mail/ui/TwoPaneController.java
+++ b/src/com/android/mail/ui/TwoPaneController.java
@@ -380,6 +380,16 @@
         }
     }
 
+    protected void onDragStarted() {
+        final FolderListFragment flf = getFolderListFragment();
+        if (flf == null) {
+            LogUtils.w(LOG_TAG, "no drawer to toggle open/closed");
+            return;
+        }
+
+        flf.onDrawerDragStarted();
+    }
+
     protected void onDrawerDrag(float percent) {
         final FolderListFragment flf = getFolderListFragment();
         if (flf == null) {
diff --git a/src/com/android/mail/ui/TwoPaneLayout.java b/src/com/android/mail/ui/TwoPaneLayout.java
index f222e64..cf1a047 100644
--- a/src/com/android/mail/ui/TwoPaneLayout.java
+++ b/src/com/android/mail/ui/TwoPaneLayout.java
@@ -475,7 +475,7 @@
 
     @Override
     public void onDragStarted() {
-        // Do nothing
+        mController.onDragStarted();
     }
 
     @Override