diff --git a/DroidFish/src/net/margaritov/preference/colorpicker/ColorPickerPreference.java b/DroidFish/src/net/margaritov/preference/colorpicker/ColorPickerPreference.java index 631e1a6..bde5a46 100644 --- a/DroidFish/src/net/margaritov/preference/colorpicker/ColorPickerPreference.java +++ b/DroidFish/src/net/margaritov/preference/colorpicker/ColorPickerPreference.java @@ -100,6 +100,7 @@ public class ColorPickerPreference setPreviewColor(); } + @SuppressWarnings("deprecation") private void setPreviewColor() { if (mView == null) return; ImageView iView = new ImageView(getContext()); diff --git a/DroidFish/src/org/petero/droidfish/DroidFish.java b/DroidFish/src/org/petero/droidfish/DroidFish.java index 5ff1407..04c4d41 100644 --- a/DroidFish/src/org/petero/droidfish/DroidFish.java +++ b/DroidFish/src/org/petero/droidfish/DroidFish.java @@ -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)