From d1e2f8488fc5b8c1842ad00c0ef9c0c12170c635 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 20 Dec 2015 23:00:04 +0100 Subject: [PATCH] DroidFish: Suppressed warnings that can't be fixed while supporting old API levels. --- .../preference/colorpicker/ColorPickerPreference.java | 1 + DroidFish/src/org/petero/droidfish/DroidFish.java | 2 ++ 2 files changed, 3 insertions(+) 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)