DroidFish: Suppressed warnings that can't be fixed while supporting old

API levels.
This commit is contained in:
Peter Osterlund 2015-12-20 23:00:04 +01:00
parent 81a3c17bcf
commit d1e2f8488f
2 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,7 @@ public class ColorPickerPreference
setPreviewColor();
}
@SuppressWarnings("deprecation")
private void setPreviewColor() {
if (mView == null) return;
ImageView iView = new ImageView(getContext());

View File

@ -1149,6 +1149,7 @@ public class DroidFish extends Activity implements GUIInterface {
setButtonData(redoButton, bWidth, bHeight, R.raw.right, svg);
}
@SuppressWarnings("deprecation")
private final void setButtonData(ImageButton button, int bWidth, int bHeight,
int svgResId, SVG touched) {
SVG svg = SVGParser.getSVGFromResource(getResources(), svgResId);
@ -3390,6 +3391,7 @@ public class DroidFish extends Activity implements GUIInterface {
CharSequence contentText = getString(R.string.lot_cpu_power);
Intent notificationIntent = new Intent(this, CPUWarning.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
@SuppressWarnings("deprecation")
Notification notification = new Notification.Builder(context)
.setSmallIcon(icon)
.setTicker(tickerText)