Quote:
Originally Posted by DuckieTigger
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.