import android.content.res.Resources;
import android.util.TypedValue;
+import androidx.annotation.ColorInt;
+import androidx.annotation.ColorLong;
+import androidx.annotation.NonNull;
+import androidx.lifecycle.MutableLiveData;
+
import net.ktnx.mobileledger.R;
import net.ktnx.mobileledger.model.Data;
import net.ktnx.mobileledger.model.MobileLedgerProfile;
import java.util.Locale;
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorLong;
-import androidx.annotation.NonNull;
-import androidx.lifecycle.MutableLiveData;
-
import static java.lang.Math.abs;
import static net.ktnx.mobileledger.utils.Logger.debug;
setupTheme(activity, profile);
}
public static void setupTheme(Activity activity, MobileLedgerProfile profile) {
- final int themeHue = (profile == null) ? -1 : profile.getThemeId();
+ final int themeHue = (profile == null) ? -1 : profile.getThemeHue();
setupTheme(activity, themeHue);
}
public static void setupTheme(Activity activity, int themeHue) {