Hide Canvas.getGL()

Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
This commit is contained in:
Romain Guy
2011-01-10 16:33:48 -08:00
parent fe852e216f
commit 3b703f2d11
2 changed files with 8 additions and 13 deletions

View File

@ -78255,17 +78255,6 @@
visibility="public"
>
</method>
<method name="getGL"
return="javax.microedition.khronos.opengles.GL"
abstract="false"
native="false"
synchronized="false"
static="false"
final="false"
deprecated="deprecated"
visibility="protected"
>
</method>
<method name="getHeight"
return="int"
abstract="false"

View File

@ -85,8 +85,12 @@ public class Canvas {
@Override
protected void finalize() throws Throwable {
if (mNativeCanvas != 0) {
finalizer(mNativeCanvas);
try {
if (mNativeCanvas != 0) {
finalizer(mNativeCanvas);
}
} finally {
super.finalize();
}
}
}
@ -137,6 +141,8 @@ public class Canvas {
* Returns null.
*
* @deprecated This method is not supported and should not be invoked.
*
* @hide
*/
@Deprecated
protected GL getGL() {