summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2013-02-06 15:35:52 -0800
committerztenghui <ztenghui@google.com>2013-02-12 14:47:29 -0800
commit192a16ce9690f6710c0af4c64d1a2617aff0cae1 (patch)
tree6c55afc8070a62435abd082417e6f699579b6ffc /src/com/android
parentb01a32825018cfb79f2c965c1c3e3e25b5131229 (diff)
downloadandroid_packages_apps_Gallery2-192a16ce9690f6710c0af4c64d1a2617aff0cae1.tar.gz
android_packages_apps_Gallery2-192a16ce9690f6710c0af4c64d1a2617aff0cae1.tar.bz2
android_packages_apps_Gallery2-192a16ce9690f6710c0af4c64d1a2617aff0cae1.zip
DO NOT MERGE: Don't call requestLayout from onLayout
Doing a layout within a layout can lead to various problems, so it should be avoided. There's some logging that warns of this, which got triggered by CommonControllerOverlay. I don't know what problem this code was originally trying to solve, but it doesn't seem to be necessary anymore. The line in question was originally introduced in change 209a9163d4e8cee0bfe162ae598ef40e6051479c, in Oct 2011. Note: This has been checked into master, this is just cherry picking into Bryce branch. Change-Id: I7651304491a90e8d130f4a0a3b3de8e29c4d0116
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/app/CommonControllerOverlay.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/app/CommonControllerOverlay.java b/src/com/android/gallery3d/app/CommonControllerOverlay.java
index 089872fa5..a5aa805ef 100644
--- a/src/com/android/gallery3d/app/CommonControllerOverlay.java
+++ b/src/com/android/gallery3d/app/CommonControllerOverlay.java
@@ -274,10 +274,6 @@ public abstract class CommonControllerOverlay extends FrameLayout implements
mBackground.layout(0, y - mTimeBar.getBarHeight(), w, y);
mTimeBar.layout(pl, y - mTimeBar.getPreferredHeight(), w - pr, y);
- // Needed, otherwise the framework will not re-layout in case only the
- // padding is changed
- mTimeBar.requestLayout();
-
// Put the play/pause/next/ previous button in the center of the screen
layoutCenteredView(mPlayPauseReplayView, 0, 0, w, h);