Skip to content

Commit 8a25824

Browse files
author
Mihail Slavchev
committed
Revert "use AppCompatActivity as a base class for NativeScriptActivity"
This reverts commit 4213e4b.
1 parent 9cc90f0 commit 8a25824

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

build/project-template-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ repositories {
152152
}
153153

154154
dependencies {
155-
def suppotVer = "23.2.0";
155+
def suppotVer = "22.2.0";
156156
if(project.hasProperty("supportVersion")) {
157157
suppotVer = supportVersion
158158
}

build/project-template-gradle/src/main/java/com/tns/NativeScriptActivity.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.tns;
22

33
@JavaScriptImplementation(javaScriptFile = "app/tns_modules/ui/frme/frame.js")
4-
public class NativeScriptActivity extends android.support.v7.app.AppCompatActivity implements com.tns.NativeScriptHashCodeProvider {
4+
public class NativeScriptActivity extends android.app.Activity implements com.tns.NativeScriptHashCodeProvider {
55

66
public NativeScriptActivity()
77
{
@@ -48,14 +48,6 @@ protected void onActivityResult(int requestCode, int resultCode, android.content
4848
params[2] = data;
4949
com.tns.Platform.callJSMethod(this, "onActivityResult", void.class, params);
5050
}
51-
52-
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
53-
java.lang.Object[] params = new Object[3];
54-
params[0] = requestCode;
55-
params[1] = permissions;
56-
params[2] = grantResults;
57-
com.tns.Platform.callJSMethod(this, "onRequestPermissionsResult", void.class, params);
58-
}
5951

6052
public boolean equals__super(java.lang.Object other) {
6153
return super.equals(other);

0 commit comments

Comments
 (0)