package eu.se_bastiaan.popcorntimeremote.widget; import android.content.Context; import android.util.AttributeSet; import android.view.View; import eu.se_bastiaan.popcorntimeremote.utils.CheatSheet; /** * Created by Sebastiaan on 21-09-14. */ public class ImageButton extends android.widget.ImageButton { public ImageButton(Context context) { super(context); } public ImageButton(Context context, AttributeSet attrs) { super(context, attrs); } public ImageButton(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void setContentDescription(CharSequence contentDesc) { super.setContentDescription(contentDesc); if(contentDesc.length() > 0) CheatSheet.setup(this, contentDesc); } }