Make cursor string static, otherwise, it is created every time CAppWidgetProvider is created
This commit is contained in:
parent
bd91238b14
commit
9d4365cc79
@ -40,29 +40,19 @@ import android.text.SpannedString;
|
||||
import android.text.TextUtils;
|
||||
import android.text.style.StyleSpan;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import org.solovyev.android.Check;
|
||||
import org.solovyev.android.Views;
|
||||
import org.solovyev.android.calculator.App;
|
||||
import org.solovyev.android.calculator.CalculatorButton;
|
||||
import org.solovyev.android.calculator.DisplayState;
|
||||
import org.solovyev.android.calculator.EditorState;
|
||||
import org.solovyev.android.calculator.Locator;
|
||||
import org.solovyev.android.calculator.*;
|
||||
import org.solovyev.android.calculator.Preferences.SimpleTheme;
|
||||
import org.solovyev.android.calculator.R;
|
||||
|
||||
import java.util.EnumMap;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.EnumMap;
|
||||
|
||||
import static android.appwidget.AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT;
|
||||
import static android.content.Intent.ACTION_CONFIGURATION_CHANGED;
|
||||
import static android.os.Build.VERSION_CODES.JELLY_BEAN;
|
||||
import static org.solovyev.android.calculator.Broadcaster.ACTION_DISPLAY_STATE_CHANGED;
|
||||
import static org.solovyev.android.calculator.Broadcaster.ACTION_EDITOR_STATE_CHANGED;
|
||||
import static org.solovyev.android.calculator.Broadcaster.ACTION_INIT;
|
||||
import static org.solovyev.android.calculator.Broadcaster.ACTION_THEME_CHANGED;
|
||||
import static org.solovyev.android.calculator.Broadcaster.*;
|
||||
import static org.solovyev.android.calculator.CalculatorReceiver.newButtonClickedIntent;
|
||||
|
||||
public class CalculatorWidget extends AppWidgetProvider {
|
||||
@ -74,7 +64,7 @@ public class CalculatorWidget extends AppWidgetProvider {
|
||||
@Nonnull
|
||||
private static final Intents intents = new Intents();
|
||||
@Nullable
|
||||
private SpannedString cursorString;
|
||||
private static SpannedString cursorString;
|
||||
|
||||
public CalculatorWidget() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user