Thread: JBPatch
View Single Post
Old 12-31-2012, 02:13 PM   #997
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by DuckieTigger View Post
More digging: It works partially. It keeps the setting alive for anything bigger than 50. Son of female dog. It even remembers it correctly. There is nothing wrong with your code, but Amazon threw in a road block by defaulting to a MINIMUM of 50 on each page refresh or rerender.

That might be something to check out. Works flawless for my margins of 100, 150, 250. Remembers from one book to next, on page turns, closing and opening everything. *sigh*
Thank you for providing that really helpful input (honest!) - you're right again, the settings actually are preserved, and do work as long as they're >= 50. Now, does anybody know a sane way of finding out where these suckers hid that "if margin < 50 (or >=50)" switch, inside all of their horribly obfuscated code? That PW is really cracking me up

PS: No, it's not the "reader.content.[(left)|(right)]Margin" settings which determine the PDF margins, I just tried that. And there doesn't seem to be any other related number with the value of "50" in the settings either. *sigh*.

PPS: The only place where the "font.wordsperline.margin.list" setting of the com.amazon.ebook.booklet.reader.resources.ReaderRe sources file is (seemingly) read is inside the com.amazon.ebook.booklet.reader.impl.ui.yd class (the FontDialog class), which is already patched by this patch. So that value of "50" is most probably hardcoded somewhere, but I simply don't know how to find out where.

Last edited by ixtab; 12-31-2012 at 03:05 PM.
ixtab is offline   Reply With Quote