add class support for openApp

This commit is contained in:
Marko Oldenburg
2019-10-13 21:37:27 +02:00
parent 60d987722f
commit c9f705837b
3 changed files with 431 additions and 403 deletions

View File

@@ -783,15 +783,15 @@ sub Set($$@) {
my $openurl = join( ' ', @args );
my $browser = AttrVal( $name, 'setOpenUrlBrowser',
'com.android.chrome|com.google.android.apps.chrome.Main' );
my @browserapp = split( /\|/, $browser );
my ($bapp,$bappclass) = split( /\|/, $browser );
$path .=
'openURL?url='
. $openurl
. '&browserapp='
. $browserapp[0]
. $bapp
. '&browserappclass='
. $browserapp[1];
. $bappclass;
$method = 'POST';
}
@@ -817,9 +817,17 @@ sub Set($$@) {
}
elsif ( lc $cmd eq 'openapp' ) {
my $app = join( ' ', @args );
# my $app = join( ' ', @args );
my ($app,$appclass) = split( /\|/, $args[0] );
$path .=
'openApp?app='
. $app;
$path .=
'&appclass='
. $appclass
if ( defined($appclass) );
$path .= 'openApp?app=' . $app;
$method = 'POST';
}
@@ -1680,7 +1688,7 @@ sub CreateChangeBtDeviceValue($$) {
],
"release_status": "stable",
"license": "GPL_2",
"version": "v4.4.6",
"version": "v4.4.7",
"author": [
"Marko Oldenburg <leongaultier@gmail.com>"
],