Use platform ContextThemeWrapper

This commit is contained in:
serso 2017-07-11 12:39:04 +02:00
parent e816abc4b6
commit 20ba48b475
2 changed files with 16 additions and 8 deletions

View File

@ -22,6 +22,8 @@
package org.solovyev.android.calculator; package org.solovyev.android.calculator;
import static org.solovyev.android.prefs.IntegerPreference.DEF_VALUE;
import android.app.Application; import android.app.Application;
import android.content.ContentResolver; import android.content.ContentResolver;
import android.content.Context; import android.content.Context;
@ -29,10 +31,15 @@ import android.content.SharedPreferences;
import android.content.res.TypedArray; import android.content.res.TypedArray;
import android.graphics.Color; import android.graphics.Color;
import android.provider.Settings; import android.provider.Settings;
import android.support.annotation.*; import android.support.annotation.ColorRes;
import android.support.v7.view.ContextThemeWrapper; import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.support.annotation.StyleRes;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.SparseArray; import android.util.SparseArray;
import android.view.ContextThemeWrapper;
import org.solovyev.android.Check; import org.solovyev.android.Check;
import org.solovyev.android.calculator.about.AboutActivity; import org.solovyev.android.calculator.about.AboutActivity;
import org.solovyev.android.calculator.functions.FunctionsActivity; import org.solovyev.android.calculator.functions.FunctionsActivity;
@ -43,15 +50,17 @@ import org.solovyev.android.calculator.preferences.PreferenceEntry;
import org.solovyev.android.calculator.preferences.PreferencesActivity; import org.solovyev.android.calculator.preferences.PreferencesActivity;
import org.solovyev.android.calculator.variables.VariablesActivity; import org.solovyev.android.calculator.variables.VariablesActivity;
import org.solovyev.android.calculator.wizard.WizardActivity; import org.solovyev.android.calculator.wizard.WizardActivity;
import org.solovyev.android.prefs.*; import org.solovyev.android.prefs.BooleanPreference;
import org.solovyev.android.prefs.IntegerPreference;
import javax.annotation.Nonnull; import org.solovyev.android.prefs.NumberToStringPreference;
import javax.annotation.Nullable; import org.solovyev.android.prefs.Preference;
import org.solovyev.android.prefs.StringPreference;
import java.util.EnumMap; import java.util.EnumMap;
import java.util.Map; import java.util.Map;
import static org.solovyev.android.prefs.IntegerPreference.DEF_VALUE; import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class Preferences { public final class Preferences {

View File

@ -32,7 +32,6 @@ import android.graphics.drawable.Drawable;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.v7.view.ContextThemeWrapper;
import android.util.DisplayMetrics; import android.util.DisplayMetrics;
import android.view.Display; import android.view.Display;
import android.view.*; import android.view.*;