Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Other

    • Issuezilla Id:
      4

      Description

      Blackberry has a "bug" which i have patched to allow for TextArea's to have
      passwords as well as another type.

          1. Eclipse Workspace Patch 1.0
            #P LWUIT
            Index:
            BlackberryPort/src/com/sun/lwuit/impl/blackberry/BlackBerryImplementation.java
            ===================================================================
            RCS file:
            /usr/local/cvs/prism/VCC/LWUIT/BlackberryPort/src/com/sun/lwuit/impl/blackberry/
            BlackBerryImplementation.java,v
            retrieving revision 1.1
            diff -u -r1.1 BlackBerryImplementation.java
          • BlackberryPort/src/com/sun/lwuit/impl/blackberry/BlackBerryImplementation.java
            12 Feb 2010 16:30:36 -0000 1.1
            +++
            BlackberryPort/src/com/sun/lwuit/impl/blackberry/BlackBerryImplementation.java
            26 Mar 2010 15:49:15 -0000
            @@ -187,7 +187,7 @@
            lightweightEditWidth = lightweightEdit.getWidth();
            lightweightEditHeight = lightweightEdit.getHeight();
            long type = 0;

      • switch(lightweightEdit.getConstraint()) { + switch(lightweightEdit.getConstraint() & (~TextArea.PASSWORD)) { case TextArea.DECIMAL: type = BasicEditField.FILTER_REAL_NUMERIC; break; @@ -201,7 +201,7 @@ type = BasicEditField.FILTER_PHONE; break; }
      • if(lightweightEdit.getConstraint() == TextArea.PASSWORD) {
        + if((lightweightEdit.getConstraint() & TextArea.PASSWORD) ==
        TextArea.PASSWORD) {
        nativeEdit = new PasswordEditField("",
        lightweightEdit.getText(), maxSize, Field.EDITABLE | Field.FOCUSABLE | type) {
        protected boolean keyDown(int keycode, int time) {
        if (Keypad.key(keycode) == Keypad.KEY_ESCAPE) {

        Activity

        Hide
        vprise added a comment -

        Hi,
        your patch is against an old SVN.
        Technically to submit patches you need to sign the SCA granting Oracle a license for the patch. Since this seems to be one or two lines its probably not a big deal though.

        I noticed you xored the constraint in the switch, why did you do that?

        Show
        vprise added a comment - Hi, your patch is against an old SVN. Technically to submit patches you need to sign the SCA granting Oracle a license for the patch. Since this seems to be one or two lines its probably not a big deal though. I noticed you xored the constraint in the switch, why did you do that?

          People

          • Assignee:
            lwuit-incubator-issues
            Reporter:
            quaksire
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: