Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
leonidas61
Posts: 9
Registered: ‎09-12-2013
My Device: Z10
My Carrier: BG Globul

Peeking problem

Hello,

 

I have follow problem. 

 

My application contains a lot of relatively complex pages. I push them with NavigationPane. 

 

Problem is peeking. When I press "Back" button all works as expected. But problem is swiping. When I swipe to the previous page fast I see peeking effect, but page remains the same.

 

I have follows messages in the log:

 

1) If I go to previous page with back button or with slow swipe

 

pushPage : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554", "47324", "49849", "55220") 

NavigationPane: NavigationPaneOnFwdTransitionDone: emitting push transition ended for page: 55220 client top: 55220 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554,47324,49849" 

onAttributeSuggestion : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554", "47324", "49849") 

NavigationPane: NavigationPaneOnBackTransitionDone: popped page: 55220 

 

2) with fast swipe:

 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554,47324" 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554" 

 

onAttributeSuggestion : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554") 

MWMApplication::smileysurprised:nTopChanged 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554" 

 

onAttributeSuggestion : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554") 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554" 

 

onAttributeSuggestion : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554") 

NavigationPane::isSuggestedStackOk: suggested: "314,27946,29303,30425,35872,37645,40176,45554" 

 

onAttributeSuggestion : mNavigationStack : ("314", "27946", "29303", "30425", "35872", "37645", "40176", "45554") 

NavigationPane: NavigationPaneOnBackTransitionDone: popped page: 47324 

 

finally pop transition is done, but it looks completely crazy

 

Can I at least temporary diasable peek?

 

 

 

Please use plain text.
Developer
greenmr
Posts: 874
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: Peeking problem

Peeking can be disabled at the NavigationPane level with NavigationPane::setPeekEnabled( false ). Note however that even with peeking disabled, the user can still peek with the back button. This behaviour can NOT be disabled.



Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Please use plain text.
New Contributor
leonidas61
Posts: 9
Registered: ‎09-12-2013
My Device: Z10
My Carrier: BG Globul

Re: Peeking problem

I know it, but I don't want to completely disable peeking, it is great feature, I just want it to work as expected - to go to previous page. But actually it doesn't do it in all cases 

Please use plain text.
Developer
BBSJdev
Posts: 6,088
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Peeking problem

No this is not possible, I've asked for control of peek at the UI componant level to solve several problems with peek but after several months of discussions nothing has happened. 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
BlackBerry Development Advisor
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Peeking problem

Are you able to reproduce this behaviour with a simpler sample app? Or at least capture a video? Are you seeing it on the 10.2 beta?

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.
New Contributor
leonidas61
Posts: 9
Registered: ‎09-12-2013
My Device: Z10
My Carrier: BG Globul

Re: Peeking problem

My app is working on 10.1. I think it is good idea to use stable release for customers.

 

Here is video of what happens:

 

http://www.youtube.com/watch?v=CK6T2xB7OHs&feature=em-upload_owner#action=share

Please use plain text.
Developer
BBSJdev
Posts: 6,088
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Peeking problem

From this video it's hard to see where the problem is?

For Paul's benefit you might like to point out at what time point you think the problem occurs?

 

Apart from a few peek misses nothing jumped out as a problem.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,088
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Peeking problem

Okay on the 3rd watch I see it now, are you sure in your code you are not actually multiple pushing the same page?

 

I have never seen this behaviour with peek I think you are going to have to come up with a simplified app that demonstrates the behaviour with code that BlackBerry can look at. If you like you can also post it here for us to mull over.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,088
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Peeking problem

You might also post a video of you doing the exact same thing but using the back button to rule out this being any logic problems in your code.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Contributor
leonidas61
Posts: 9
Registered: ‎09-12-2013
My Device: Z10
My Carrier: BG Globul

Re: Peeking problem

This is video with back button:

 

http://www.youtube.com/watch?v=FxM66WoGgDw&feature=em-upload_owner#action=share

 

About sample app... I'll try to write it but it is not so easy. 

 

It seems I understand what is heppening, but I don't understand how to fix it

 

When page is popped, I do follow:

 

voidMWMApplication::smileysurprised:nPopTransitionEnded(bb::cascades::Page *page)

{

    delete page;

    MWMPage *ep = currentPage;

    currentPage = currentPage->getPrevPage();

    delete ep;

    if(currentPage&&currentPage->getMWMPage()->property("foreground").isValid())

    {

        currentPage->getMWMPage()->setProperty("foreground", true);

    }

    emit pagePopped();

}

 

At first step I delete page as is (delete page:smileywink: and at the second I delete C++ part corresponding to this page (delete ep:smileywink:.

 

This procedure takes some time and if swiping occurs before it finishes, I have corresponding problem. This is why I asked if I can disable peeking for this time.

Please use plain text.