Skip to content

Commit

Permalink
Merge branch 'master' into StudioProjectCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
infil00p committed Nov 28, 2017
2 parents 2b20802 + 3ad1ed7 commit 4863320
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 1 deletion.
Binary file modified bin/templates/project/res/drawable-land-hdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-land-ldpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-land-mdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-land-xhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-land-xxhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-land-xxxhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-hdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-ldpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-mdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-xhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-xxhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/drawable-port-xxxhdpi/screen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-xhdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-xxhdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/templates/project/res/mipmap-xxxhdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion framework/src/org/apache/cordova/CordovaInterface.java
Expand Up @@ -19,6 +19,7 @@ Licensed to the Apache Software Foundation (ASF) under one
package org.apache.cordova;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import org.apache.cordova.CordovaPlugin;
Expand Down Expand Up @@ -51,10 +52,18 @@ public interface CordovaInterface {
/**
* Get the Android activity.
*
* If a custom engine lives outside of the Activity's lifecycle the return value may be null.
*
* @return the Activity
*/
public abstract Activity getActivity();


/**
* Get the Android context.
*
* @return the Context
*/
public Context getContext();

/**
* Called when a message is sent to plugin.
Expand Down
6 changes: 6 additions & 0 deletions framework/src/org/apache/cordova/CordovaInterfaceImpl.java
Expand Up @@ -21,6 +21,7 @@ Licensed to the Apache Software Foundation (ASF) under one

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
Expand Down Expand Up @@ -85,6 +86,11 @@ public Activity getActivity() {
return activity;
}

@Override
public Context getContext() {
return activity;
}

@Override
public Object onMessage(String id, Object data) {
if ("exit".equals(id)) {
Expand Down

0 comments on commit 4863320

Please sign in to comment.