Skip to content

Commit

Permalink
Use the correct annotation to ignore a lint warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Feb 22, 2014
1 parent 179ea05 commit 8659825
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package org.jraf.android.backport.switchwidget;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
Expand Down Expand Up @@ -297,7 +296,7 @@ public void setTextOff(CharSequence textOff) {
}

@Override
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@SuppressLint("NewApi")
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
if (mOnLayout == null) {
mOnLayout = makeLayout(mTextOn);
Expand Down

0 comments on commit 8659825

Please sign in to comment.