Re-adding getContext because yo dawg, I heard you like contexts in your contexts

This commit is contained in:
Joe Bowser 2012-06-26 11:25:17 -07:00
parent 4699ab5500
commit 5829840409
2 changed files with 6 additions and 1 deletions

View File

@ -940,6 +940,7 @@ public class DroidGap extends Activity implements CordovaInterface {
* @return
*/
public Context getContext() {
LOG.d(TAG, "This will be deprecated December 2012");
return this.getContext();
}

View File

@ -19,6 +19,7 @@
package org.apache.cordova.api;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
/**
@ -52,6 +53,9 @@ public interface CordovaInterface {
*/
public abstract Activity getActivity();
@Deprecated
public abstract Context getContext();
@Deprecated
public abstract void cancelLoadUrl();