Skip to content

Commit

Permalink
[TC-5682] Android: switch to AppCompatButton
Browse files Browse the repository at this point in the history
  • Loading branch information
manumaticx committed Sep 11, 2015
1 parent c15bb60 commit a899866
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public TiUIButton(final TiViewProxy proxy)
{
super(proxy);
Log.d(TAG, "Creating a button", Log.DEBUG_MODE);
Button btn = new Button(proxy.getActivity())
AppCompatButton btn = new AppCompatButton(proxy.getActivity())
{
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
Expand All @@ -60,7 +60,7 @@ public void processProperties(KrollDict d)

boolean needShadow = false;

Button btn = (Button) getNativeView();
AppCompatButton btn = (AppCompatButton) getNativeView();
if (d.containsKey(TiC.PROPERTY_IMAGE)) {
Object value = d.get(TiC.PROPERTY_IMAGE);
TiDrawableReference drawableRef = null;
Expand Down Expand Up @@ -130,7 +130,7 @@ public void propertyChanged(String key, Object oldValue, Object newValue, KrollP
if (Log.isDebugModeEnabled()) {
Log.d(TAG, "Property: " + key + " old: " + oldValue + " new: " + newValue, Log.DEBUG_MODE);
}
Button btn = (Button) getNativeView();
AppCompatButton btn = (AppCompatButton) getNativeView();
if (key.equals(TiC.PROPERTY_TITLE)) {
btn.setText((String) newValue);
} else if (key.equals(TiC.PROPERTY_COLOR)) {
Expand Down

0 comments on commit a899866

Please sign in to comment.