mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-21 13:12:17 +01:00
DroidFish: Suppressed warnings that can't be fixed while supporting old
API levels.
This commit is contained in:
@@ -100,6 +100,7 @@ public class ColorPickerPreference
|
|||||||
setPreviewColor();
|
setPreviewColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private void setPreviewColor() {
|
private void setPreviewColor() {
|
||||||
if (mView == null) return;
|
if (mView == null) return;
|
||||||
ImageView iView = new ImageView(getContext());
|
ImageView iView = new ImageView(getContext());
|
||||||
|
|||||||
@@ -1149,6 +1149,7 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||||||
setButtonData(redoButton, bWidth, bHeight, R.raw.right, svg);
|
setButtonData(redoButton, bWidth, bHeight, R.raw.right, svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private final void setButtonData(ImageButton button, int bWidth, int bHeight,
|
private final void setButtonData(ImageButton button, int bWidth, int bHeight,
|
||||||
int svgResId, SVG touched) {
|
int svgResId, SVG touched) {
|
||||||
SVG svg = SVGParser.getSVGFromResource(getResources(), svgResId);
|
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);
|
CharSequence contentText = getString(R.string.lot_cpu_power);
|
||||||
Intent notificationIntent = new Intent(this, CPUWarning.class);
|
Intent notificationIntent = new Intent(this, CPUWarning.class);
|
||||||
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
|
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
Notification notification = new Notification.Builder(context)
|
Notification notification = new Notification.Builder(context)
|
||||||
.setSmallIcon(icon)
|
.setSmallIcon(icon)
|
||||||
.setTicker(tickerText)
|
.setTicker(tickerText)
|
||||||
|
|||||||
Reference in New Issue
Block a user