Theme fix
This commit is contained in:
parent
3f28b77645
commit
c5a637de78
@ -39,7 +39,6 @@ import jscl.NumeralBase;
|
|||||||
import org.solovyev.android.Check;
|
import org.solovyev.android.Check;
|
||||||
import org.solovyev.android.calculator.language.Languages;
|
import org.solovyev.android.calculator.language.Languages;
|
||||||
import org.solovyev.android.calculator.math.MathType;
|
import org.solovyev.android.calculator.math.MathType;
|
||||||
import org.solovyev.android.calculator.preferences.PurchaseDialogActivity;
|
|
||||||
import org.solovyev.android.calculator.wizard.WizardActivity;
|
import org.solovyev.android.calculator.wizard.WizardActivity;
|
||||||
import org.solovyev.android.prefs.*;
|
import org.solovyev.android.prefs.*;
|
||||||
|
|
||||||
@ -329,14 +328,11 @@ public final class Preferences {
|
|||||||
|
|
||||||
public int getThemeFor(@Nullable Context context) {
|
public int getThemeFor(@Nullable Context context) {
|
||||||
if (context instanceof CalculatorActivity) {
|
if (context instanceof CalculatorActivity) {
|
||||||
return wizardTheme;
|
return mainTheme;
|
||||||
}
|
}
|
||||||
if (context instanceof WizardActivity) {
|
if (context instanceof WizardActivity) {
|
||||||
return wizardTheme;
|
return wizardTheme;
|
||||||
}
|
}
|
||||||
if (context instanceof PurchaseDialogActivity) {
|
|
||||||
return dialogTheme;
|
|
||||||
}
|
|
||||||
return theme;
|
return theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user