Fix Lint errors on API level 16

This commit is contained in:
Cameron Gutman
2020-02-19 23:53:44 -08:00
parent 112d9c41eb
commit 8c910101c7
2 changed files with 13 additions and 10 deletions

View File

@@ -603,7 +603,9 @@ public class Game extends Activity implements SurfaceHolder.Callback,
try {
Field field = windowLayoutParams.getClass().getDeclaredField("preferMinimalPostProcessing");
field.set(windowLayoutParams, isPreferred);
} catch (NoSuchFieldException | IllegalAccessException e) {
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}