Use ARGB8888 for covers. Fix buttons background

This commit is contained in:
inorichi 2016-01-05 15:54:51 +01:00
parent 138e92d0aa
commit 2f66b6e56c
3 changed files with 26 additions and 1 deletions

View File

@ -66,6 +66,11 @@
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<meta-data
android:name="eu.kanade.mangafeed.data.cache.CoverGlideModule"
android:value="GlideModule" />
</application>
</manifest>

View File

@ -0,0 +1,21 @@
package eu.kanade.mangafeed.data.cache;
import android.content.Context;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.module.GlideModule;
public class CoverGlideModule implements GlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
}
@Override
public void registerComponents(Context context, Glide glide) {
}
}

View File

@ -4,7 +4,6 @@
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorButtonNormal">@color/colorPrimary</item>
<item name="alertDialogTheme">@style/AlertDialogStyle</item>
<item name="android:itemTextAppearance">@style/OptionsMenuTextColor</item>
<item name="android:textColor">@color/primary_text</item>