webOS Nation Forums >  Homebrew >  webOS patches > [Patch]Browser fix for no bookmarks displayed bug in 2.0.1
[Patch]Browser fix for no bookmarks displayed bug in 2.0.1

  Reply
 
LinkBack Thread Tools Display Modes
Old 02/17/2011, 06:30 AM   #1 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default [Patch]Browser fix for no bookmarks displayed bug onPre 2 / 2.0.1

On a Pre 2 / webOS 2.0.1 , bookmarks under preferences are sometimes not displayed and deletion and reordering is not possible. This patch fixes that.

Since I do not completely understand what's happening in the original webOS 2.0.1 code, 'I'd appreciate a few beta testers'. I do understand the code I have added though.

[..deleted the code part..]

===== edit
webOS 2.2.4 version included 99 bookmarks patch.

Last edited by Dick99999; 12/27/2011 at 08:21 AM. Reason: Pre 2 added to designate webOS version. deleted code part
Dick99999 is offline   Reply With Quote
Old 02/17/2011, 07:31 AM   #2 (permalink)
Member
 
Join Date: Jun 2008
Posts: 126
Likes Received: 0
Thanks: 172
Thanked 13 Times in 11 Posts
Default

Such a patch was already posted HERE by ashirg.
ApplePie is offline   Reply With Quote
Old 02/17/2011, 10:17 AM   #3 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

Quote:
Originally Posted by yitz0550 View Post
Such a patch was already posted HERE by ashirg.
That addresses another problem for another webOS version. The patch of this thread addresses an intermittent problem on the Pre 2. This patch is about the preference screen that is used for rearranging and deleting bookmarks using the bookmarks list screen, not the tiles screen.

Last edited by Dick99999; 02/17/2011 at 10:22 AM.
Dick99999 is offline   Reply With Quote
Old 03/09/2011, 05:17 PM   #4 (permalink)
Member
 
palmcrash's Avatar
 
Join Date: Mar 2005
Location: NYC
Posts: 87
Likes Received: 0
Thanks: 44
Thanked 2 Times in 1 Post
Default

Nice. I've run into this problem twice (had to clear all bookmarks each time to fix), so I'll give it a go if it happens yet again.
palmcrash is offline   Reply With Quote
Old 03/27/2011, 12:50 PM   #5 (permalink)
Member
 
Join Date: Jul 2007
Posts: 1
Likes Received: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Yes! This worked beautifully for my Verizon Pre Plus meta-doctored to 2.1.0.
cluefree is offline   Reply With Quote
Old 03/30/2011, 09:07 AM   #6 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

Glad it worked. I'll post a technical question I have about this patch on this forum too. Anybody?
Quote:
After a while my Pre 2 displays a blank bookmarks list under browser preferences. That inhibits sorting and deleting bookmarks.
Clearing all bookmarks fixes the behavior, but after a while the bug reappears. In my case after a restore.

I looked at the code and don't completely understand it. The bug must be related to the code below, since a patch I made in there, fixes the bug on my Pre 2.

The part I do not understand is the following:
Code:
this.controller.setupWidget('bookmarksList',
		{itemTemplate:'bookmarks/bookmarks-entry',
		 listTemplate:'bookmarks/bookmarks-container',
		 itemsCallback:this._retrieveItemsCallback.bind(this),
		 swipeToDelete:true,
		 reorderable:true});
Question: Since there is not data model specified, how does the controller know which datamodel to use? (It's not the widget within a list widget case). Further down the app is using a variable this.bookmarksModel to populate the datamodel with bookmarkrs info
Code:
		this.bookmarksModel.push(item);
Then it finishes by just updating the length info of the list widget.
Code:
		this.bookmarksListWidget.mojo.setLength(this.bookmarksModel.length);
Since the code obviously works mosttimes, how is the datamodel passed on?

I know that for widgets within widgets, the embedded widget uses the model of the top widget. But that seems not the case here. And perhaps if population of the data is done by callback one should/could? not specify a datamodel? The code above does not use the controller's callback to populate the datamodel.
Dick99999 is offline   Reply With Quote
Old 08/18/2011, 10:25 PM   #7 (permalink)
Member
 
tobeaman's Avatar
 
Join Date: Dec 2009
Location: DC area
Posts: 34
Likes Received: 0
Thanks: 21
Thanked 3 Times in 3 Posts
Default

WOW! Thank you! Thank you! Thank you! I have a Pre 2 on VZW. This was happening on 2.0.1 But I thought it would be corrected in 2.1 but, unfortunately, it did not. Your patch works beautifully, though.
tobeaman is offline   Reply With Quote
Old 09/11/2011, 12:46 AM   #8 (permalink)
Member
 
Join Date: Oct 2009
Posts: 16
Likes Received: 5
Thanks: 6
Thanked 2 Times in 1 Post
Default

Thank you so much for this patch! I migrated to a Pre2 last weekend and this issue started happening. I tried to clear the cookies, cache, history, and all the bookmarks. I then added them back in one and a time and verified that the bookmark list was still there. I finished re-adding all bookmarks and the list page was working fine - until I closed the browser. Then I was back to square one. Until I found your patch. It worked like a charm - saving me and my sanity.
workerb is offline   Reply With Quote
Old 09/11/2011, 02:55 AM   #9 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

Glad it works well for you as it does for me. It's likely one of the few patches of which the designer does not know why the patch works and the original code does not ......
Dick99999 is offline   Reply With Quote
Old 09/19/2011, 05:43 AM   #10 (permalink)
Member
 
Join Date: Jun 2010
Posts: 29
Likes Received: 0
Thanks: 21
Thanked 1 Time in 1 Post
Default

Does it function with Pre3?
Gwidion is offline   Reply With Quote
Old 09/19/2011, 10:32 AM   #11 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

May be the PRe 3 does not have this issue? Have not tried it yet.
Dick99999 is offline   Reply With Quote
Old 09/20/2011, 02:12 PM   #12 (permalink)
Member
 
Join Date: Jun 2010
Posts: 29
Likes Received: 0
Thanks: 21
Thanked 1 Time in 1 Post
Default

It function And yes, the Pre3 has this problem! ;(
Gwidion is offline   Reply With Quote
Old 12/26/2011, 01:42 PM   #13 (permalink)
Member
 
Join Date: Mar 2011
Posts: 9
Likes Received: 0
Thanks: 5
Thanked 3 Times in 3 Posts
Default

Would it be possible to get the patch to work under
WebOS 2.2.4 ?
My Pre 2 has the bookmarks problem (again) after upgrading to this version.

Last edited by lulilola; 12/26/2011 at 01:50 PM.
lulilola is offline   Reply With Quote
Old 12/26/2011, 02:06 PM   #14 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

The current version works for 2.2.4 too. I'll submit it. If you know how, you can install the current version.
onto 2.2.4
Dick99999 is offline   Reply With Quote
Thanked By: lulilola
Old 12/26/2011, 03:28 PM   #15 (permalink)
Member
 
Join Date: Jun 2004
Posts: 284
Likes Received: 22
Thanks: 19
Thanked 33 Times in 22 Posts
Default

I tried to tell that to someone in another thread and linked him back to here, but he didn't understand or figure it out. It works fine in 2.2.4. Until submited use webosqi to install.

Thanks for this patch, I appreciate it.
__________________
Jim Altman
Palm III ->Treos 600->650->750->Pro->Pre Plus->Pre 2->Pre3+TouchPad
jaltman is online now   Reply With Quote
Old 12/26/2011, 06:53 PM   #16 (permalink)
Member
 
Join Date: Jul 2010
Location: Puerto Rico
Posts: 66
Likes Received: 8
Thanks: 28
Thanked 11 Times in 9 Posts
Default

Quote:
Originally Posted by lulilola View Post
Would it be possible to get the patch to work under
WebOS 2.2.4 ?
My Pre 2 has the bookmarks problem (again) after upgrading to this version.
Until the submit is complete you can also just send the file in this thread to your email. And download the attachment from your phone. And Internalz will install it for you
__________________

My Preł internet connection speeds. Not quite 4g but fast enough... (:
eny2002 is offline   Reply With Quote
Old 12/27/2011, 08:26 AM   #17 (permalink)
Member
 
Join Date: Mar 2005
Location: Netherlands
Posts: 456
Likes Received: 3
Thanks: 10
Thanked 69 Times in 44 Posts
Default

The 2.1 version installed OK on 2.2.4 but was not exactly right in referencing the code lines to be modified. The 2.2.4 version has been corrected and now also includes the 99 bookmarks patch done by Pastorrich1 with credits.
Without that increase the fix bug patch does not make sense. Side effect: the original 99 lines patch has to be removed before installing the 2.2.4 version of this patch patch.
Dick99999 is offline   Reply With Quote
Thanked By: lulilola
Old 12/27/2011, 03:33 PM   #18 (permalink)
Member
 
Join Date: Mar 2011
Posts: 9
Likes Received: 0
Thanks: 5
Thanked 3 Times in 3 Posts
Default

Installation via email attachment worked smoothly
on GSM Pre 2 Webos 2.2.4

The patch is really useful. Thanks!
lulilola is offline   Reply With Quote
Old 12/27/2011, 05:43 PM   #19 (permalink)
Member
 
sshaka's Avatar
 
Join Date: Aug 2010
Location: Far Beyond the Nirvana
Posts: 50
Likes Received: 0
Thanks: 88
Thanked 0 Times in 0 Posts
Default

Thanks for the patch's new version for webOS 2.2.4!!! \m/ It really works!!!
__________________
El Sendero del Samurai: Lealtad, Paz Interna, Paciencia y Meditar a los pies de Buda.

HP Palm Prē 2 + webOS 2.2.4 / iPad 2 + iOS 5.0.1 / Palm LifeFlash Sandisk + SDHC 16Gb
sshaka is offline   Reply With Quote
Old 01/04/2012, 11:27 AM   #20 (permalink)
Member
 
Join Date: Sep 2009
Posts: 552
Likes Received: 2
Thanks: 30
Thanked 16 Times in 15 Posts
Default

Are you guys able to install this patch through Internalz? I'm not, it says "only garbage was found in the patch input"!
__________________
presently in Milan, if you're around, I'm on facebook and englishpresence
crowning73 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0