mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Observable Array tests fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {Page} from "ui/page";
|
||||
import { Page } from "ui/page";
|
||||
import * as trace from "trace";
|
||||
import * as tests from "../testRunner";
|
||||
import {Label} from "ui/label";
|
||||
import { Label } from "ui/label";
|
||||
import * as application from "application";
|
||||
import * as platform from "platform";
|
||||
|
||||
@@ -37,9 +37,9 @@ function onNavigatedTo(args) {
|
||||
|
||||
if (platform.isAndroid && parseInt(platform.device.sdkVersion) >= 23) {
|
||||
let handler = (args: application.AndroidActivityRequestPermissionsEventData) => {
|
||||
application.android.off(application.AndroidApplication.activityRequestPermissionsEvent, handler);
|
||||
application.android.off(application.AndroidApplication.activityRequestPermissionsEvent, handler);
|
||||
if (args.requestCode === 1234 && args.grantResults.length > 0 && args.grantResults[0] === android.content.pm.PackageManager.PERMISSION_GRANTED) {
|
||||
runTests();
|
||||
runTests();
|
||||
} else {
|
||||
trace.write("Permission for write to external storage not granted!", trace.categories.Error, trace.messageType.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user