mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Refactoring
This commit is contained in:
@@ -37,7 +37,6 @@ import android.graphics.RectF;
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.provider.ContactsContract;
|
||||
import android.util.TypedValue;
|
||||
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
@@ -159,11 +158,8 @@ public class ContactInfo {
|
||||
}
|
||||
|
||||
if (info.bitmap == null) {
|
||||
TypedValue tv = new TypedValue();
|
||||
context.getTheme().resolveAttribute(R.attr.themeName, tv, true);
|
||||
int dp = Helper.dp2pixels(context, 48);
|
||||
|
||||
boolean dark = !"light".equals(tv.string);
|
||||
boolean dark = Helper.isDarkTheme(context);
|
||||
boolean identicons = prefs.getBoolean("identicons", false);
|
||||
if (identicons)
|
||||
info.bitmap = Identicon.icon(key, dp, 5, dark);
|
||||
|
||||
Reference in New Issue
Block a user