Bug 780928 - Fix rawtypes usage in LayerView.java. r=kats

Fix unnecessary usage of raw Class type.
This commit is contained in:
Chris Lord 2012-08-07 18:57:19 +01:00
parent 8934430ca5
commit 5b80d64763

View File

@ -67,7 +67,7 @@ public class LayerView extends FrameLayout {
try {
// and then we can only use it if we have a hardware accelerated window
Method m = View.class.getMethod("isHardwareAccelerated", new Class[0]);
Method m = View.class.getMethod("isHardwareAccelerated", (Class[]) null);
return (Boolean) m.invoke(this);
} catch (Exception e) {
Log.i(LOGTAG, "Not using TextureView: caught exception checking for hw accel: " + e.toString());