|
@@ -128,6 +128,10 @@ public final class ThemeUtils {
|
|
|
public static int primaryColor(Account account, boolean replaceWhite, Context context) {
|
|
|
OCCapability capability = getCapability(account, context);
|
|
|
|
|
|
+ if (context==null) {
|
|
|
+ return 255;
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
int color = Color.parseColor(capability.getServerColor());
|
|
|
if (replaceWhite && Color.WHITE == color) {
|