View Single Post
Old 09-17-2012, 05:38 PM   #84
ihor
Enthusiast
ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'
 
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
Quote:
Originally Posted by ixtab View Post
That one is easy to solve. Just remove *everything* in the overriding resource bundle *except* for the entry/entries that you actually want to replace.

Unless you're extremely unlucky, this will - as a side effect - also trim down the required imports to maybe three or four (common) classes.

EDIT: Oh, I see that you did just that. But this also means that your "import conflicts" should have gone away. In fact, there is only one import left:

Spoiler:

Code:
package com.amazon.ebook.framework.resources;

import java.util.ListResourceBundle;

public class UIResources_en_US extends ListResourceBundle
{

    public UIResources_en_US()
    {
    }

    public Object[][] getContents()
    {
        return f;
    }

    static final Object f[][] = {
        {
            "fontmenu.default.font.size.list", new int[] {
                21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 
                31
            }
        }
    };

}


And a final hint: you don't need two separate jar files. You can put both classes into the same file, of course.
ixtab, you won't believe, but I did all except last point (putting in one file) still BEFORE I read this message.

you mentioned about this several days before, I read it, but not attentively. then re-read your previous message. then did a new version - see attach. then started writing my messsage - and noticed your instruction.

this is nice that you wrote all this, because I could check my work with someone who knows java much better. And that is why I see all is done correctly.

So, here you are - a new version which shoud work on firmwares starting from 2.5.8.
Attached Files
File Type: zip generic_Aa_fix.zip (1.9 KB, 225 views)
ihor is offline   Reply With Quote