Merge branch 'dev-widget' into dev

This commit is contained in:
Sergey Solovyev 2012-10-26 21:38:17 +04:00
commit 401ff87e91
3 changed files with 505 additions and 504 deletions

View File

@ -64,6 +64,7 @@ public final class CalculatorButtons {
views.setTextViewText(R.id.multiplicationButton, CalculatorLocatorImpl.getInstance().getEngine().getMultiplicationSign());
}
public static void toggleEqualsButton(@Nullable SharedPreferences preferences,
@NotNull Activity activity) {
preferences = preferences == null ? PreferenceManager.getDefaultSharedPreferences(activity) : preferences;

View File

@ -117,11 +117,11 @@ public class CalculatorWidgetProvider extends AppWidgetProvider {
}
}
CalculatorButtons.initMultiplicationButton(views);
updateEditorState(context, views, editorState);
updateDisplayState(context, views, displayState);
CalculatorButtons.initMultiplicationButton(views);
appWidgetManager.updateAppWidget(appWidgetId, views);
}
}