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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user