Don't use black background in playlist activity

This commit is contained in:
Christopher Eby 2012-01-09 07:09:20 -06:00
parent 739a0d9894
commit e63aba75c4
3 changed files with 2 additions and 8 deletions

View File

@ -53,8 +53,7 @@ THE SOFTWARE.
android:launchMode="singleTop" />
<activity
android:name="PlaylistActivity"
android:launchMode="singleTask"
android:theme="@style/Black" />
android:launchMode="singleTask" />
<activity
android:name="MiniPlaybackActivity"
android:theme="@style/Dialog"

View File

@ -23,10 +23,6 @@ THE SOFTWARE.
<resources>
<style name="Dialog" parent="android:Theme.Dialog" />
<style name="Theme" parent="android:Theme" />
<style name="Black" parent="Theme">
<item name="android:colorBackground">@android:color/black</item>
<item name="android:windowBackground">@android:color/black</item>
</style>
<style name="NoTitle" parent="Theme">
<item name="android:windowNoTitle">true</item>
</style>

View File

@ -18,7 +18,6 @@ package org.kreed.vanilla;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.PixelFormat;
import android.os.Message;
import android.util.AttributeSet;
import android.view.Gravity;
@ -301,9 +300,9 @@ public class DragListView extends ListView implements Handler.Callback {
| WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;
mWindowParams.format = PixelFormat.TRANSLUCENT;
mWindowParams.windowAnimations = 0;
item.setDrawingCacheBackgroundColor(0xff005500);
item.buildDrawingCache();
// Create a copy of the drawing cache so that it does not get recycled
// by the framework when the list tries to clean up memory