1 parent
a92fa304f1
commit
ac25b95eae
2 files changed
+2
-14
No files matched your search
@@ -18,11 +18,7 @@ package com.hippo.ehviewer.ui;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
|
||||
import androidx.annotation.AttrRes;
|
||||
import androidx.annotation.ColorInt;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.hippo.app.ListCheckBoxDialogBuilder;
|
||||
@@ -271,12 +267,4 @@ public final class CommonOperations {
|
||||
delegate.onCancel();
|
||||
}
|
||||
}
|
||||
|
||||
public static @ColorInt
|
||||
int resolveColor(Resources.Theme theme, @AttrRes int attrId) {
|
||||
TypedArray a = theme.obtainStyledAttributes(new int[]{attrId});
|
||||
int res = a.getColor(0, 0);
|
||||
a.recycle();
|
||||
return res;
|
||||
}
|
||||
}
|
||||
@@ -951,8 +951,8 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
|
||||
}
|
||||
|
||||
EhTagDatabase ehTags = Settings.getShowTagTranslations() ? EhTagDatabase.getInstance(context) : null;
|
||||
int colorTag = CommonOperations.resolveColor(getTheme(), R.attr.tagBackgroundColor);
|
||||
int colorName = CommonOperations.resolveColor(getTheme(), R.attr.tagGroupBackgroundColor);
|
||||
int colorTag = 0;
|
||||
int colorName = 0;
|
||||
for (GalleryTagGroup tg : tagGroups) {
|
||||
LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.gallery_tag_group, mTags, false);
|
||||
ll.setOrientation(LinearLayout.HORIZONTAL);
|
||||
|
||||
Reference in new issue
Block a user