Hi,we have resolved this by adding a text file named "xwalk-command-line" in 
the assets folder of the project. The file content is: 

xwalk --disable-pull-to-refresh-effect
Bye, Daniele 


     Il Venerdì 17 Luglio 2015 7:11, "Xu, Xing" <[email protected]> ha scritto:
   

 #yiv1945574338 #yiv1945574338 -- _filtered #yiv1945574338 
{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;} _filtered #yiv1945574338 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv1945574338 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv1945574338 
{panose-1:2 1 6 0 3 1 1 1 1 1;}#yiv1945574338 #yiv1945574338 
p.yiv1945574338MsoNormal, #yiv1945574338 li.yiv1945574338MsoNormal, 
#yiv1945574338 div.yiv1945574338MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv1945574338 a:link, 
#yiv1945574338 span.yiv1945574338MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv1945574338 a:visited, #yiv1945574338 
span.yiv1945574338MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv1945574338 p 
{margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv1945574338 
span.yiv1945574338EmailStyle18 {color:#1F497D;}#yiv1945574338 
.yiv1945574338MsoChpDefault {} _filtered #yiv1945574338 {margin:1.0in 1.25in 
1.0in 1.25in;}#yiv1945574338 div.yiv1945574338WordSection1 {}#yiv1945574338 Try 
this: static final String INIT_SWITCHES[] = { "Xwalk", 
"--disable-pull-to-refresh-effect"};                 if 
(!CommandLine.isInitialized()) {                                 
CommandLine.init(INIT_SWITCHES);                                       }    
Regards, Xing    From: Aram Azhari [mailto:[email protected]]
Sent: Friday, July 17, 2015 1:51 AM
To: Xu, Xing
Cc: [email protected]
Subject: Re: [Crosswalk-help] Disabling pull down refresh in crosswalk       Hi 
Xing,    I get this error when using the commandline:    07-16 13:45:42.102     
system_server 467      1187   W        ActivityManager         Caused by: 
java.lang.NullPointerException: Attempt to invoke virtual method 'void 
org.chromium.base.CommandLine.appendSwitch(java.lang.String)' on a null object 
reference    My code looks like this:    ` 
org.chromium.base.CommandLine.getInstance().appendSwitch("--disable-pull-to-refresh-effect");
 webView = new XWalkView(getActivity(), getActivity()); ` Any ideas on how to 
fix this?    Best Regards,    On Thu, Jun 11, 2015 at 10:36 PM, Aram Azhari 
<[email protected]> wrote: 
Thanks.  I'll try it and let you know.  Best regards, 
Aram On 11 Jun 2015 22:31, "Xu, Xing" <[email protected]> wrote: 
In java side, before new XWalkView, you can: 
CommandLine.getInstance().appendSwitch("--disable-pull-to-refresh-effect");   
From: Aram Azhari [mailto:[email protected]]
Sent: Friday, June 12, 2015 9:42 AM
To: Xu, Xing
Cc: [email protected]
Subject: RE: [Crosswalk-help] Disabling pull down refresh in crosswalk   How 
about doing the file copying within an activity before running crosswalk? I 
assume writing to that folder shouldn't require any root acess. On 11 Jun 2015 
21:19, "Xu, Xing" <[email protected]> wrote: 
Yes. You can create a file xwview-shell-command-line, add the following line 
into it: Xwalk  --disable-pull-to-refresh-effect Then adb push 
xwview-shell-command-line /data/local/tmp/xwview-shell-command-line   And 
relaunch your app.   From: Aram Azhari [mailto:[email protected]]
Sent: Friday, June 12, 2015 9:11 AM
To: Xu, Xing
Cc: [email protected]
Subject: RE: [Crosswalk-help] Disabling pull down refresh in crosswalk   Is 
that a folder on the android device? On 11 Jun 2015 20:38, "Xu, Xing" 
<[email protected]> wrote: 
Hi, Aram I tried it on Android, it works.   Xing   From: Aram Azhari 
[mailto:[email protected]]
Sent: Friday, June 12, 2015 8:34 AM
To: Xu, Xing
Cc: [email protected]
Subject: RE: [Crosswalk-help] Disabling pull down refresh in crosswalk   Hi Xu, 
Thank you for your help. I forgot to mention that it is an Android.  Would this 
still apply? Best regards,  On 11 Jun 2015 20:26, "Xu, Xing" 
<[email protected]> wrote: 
Hi, Aram,  you can add the following line into 
/data/local/tmp/xwview-shell-command-line if you are using embedding API. Xwalk 
 --disable-pull-to-refresh-effect   Also, 
inhttp://stackoverflow.com/questions/29008194/disabling-androids-chrome-pull-down-to-refresh-feature,
 there is some other way to do this(I didn’t try it). Any feedback will be 
welcome!   Xing From: Crosswalk-help 
[mailto:[email protected]]On Behalf Of Aram 
Azhari
Sent: Friday, June 12, 2015 2:02 AM
To: [email protected]
Subject: [Crosswalk-help] Disabling pull down refresh in crosswalk   Hi,  Is it 
possible to disable pull down refresh functionality in crosswalk embedded? Note 
that we're using crosswalk,  not cordova. Thanks. 
Aram 






    --     Best Regards Aram Azhari 
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help


  
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to