OSDN Git Service

Set the window backgrond and remove it in onCreate().
authorOwen Lin <owenlin@google.com>
Wed, 16 May 2012 00:52:09 +0000 (17:52 -0700)
committerOwen Lin <owenlin@google.com>
Thu, 17 May 2012 17:07:53 +0000 (10:07 -0700)
To have better transistion when launching the app.

bug: 6494653
Change-Id: I0f28796d599931c676c99e8f19a9f34e05018570

src/com/android/gallery3d/app/AbstractGalleryActivity.java

index 2c63e34..4ee7403 100644 (file)
@@ -61,6 +61,7 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity
         super.onCreate(savedInstanceState);
         mOrientationManager = new OrientationManager(this);
         toggleStatusBarByOrientation();
+        getWindow().setBackgroundDrawable(null);
     }
 
     @Override