mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 09:03:50 +01:00
DroidFish: Suppressed warnings that can't be fixed while supporting old
API levels.
This commit is contained in:
parent
81a3c17bcf
commit
d1e2f8488f
|
@ -100,6 +100,7 @@ public class ColorPickerPreference
|
|||
setPreviewColor();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void setPreviewColor() {
|
||||
if (mView == null) return;
|
||||
ImageView iView = new ImageView(getContext());
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user