Hi,

The file approach didn't work for us, but

static final String INIT_SWITCHES[] = { "Xwalk",
"--disable-pull-to-refresh-effect", "--disable-overscroll-edge-effect"};

                if (!CommandLine.isInitialized()) {


CommandLine.init(INIT_SWITCHES);

                }


did. So thank you.


Best Regards,

Aaam

On Fri, Jul 17, 2015 at 3:15 AM, Daniele Gibertoni <[email protected]> wrote:

> 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:
>
>
>  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, in
> http://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
>
>
>


-- 

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

Reply via email to