Code Monkey home page Code Monkey logo

Comments (5)

ngsilverman avatar ngsilverman commented on May 13, 2024 1

@ioterateam I believe I was able to fix the issue. In some ways it's an Android bug, because:

textView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
textView.setSingleLine(true);

Doing this programmatically (in that order) will also break the password input type.

However TextView does some stuff during initialization so that an XML style that sets the same attributes behaves as you would expect. I replicated that logic here and added a few tests.

I published a new snapshot so it should update automatically for you (the previous version might stay cached for a day or so).

from paris.

ngsilverman avatar ngsilverman commented on May 13, 2024

Thanks for creating a new issue for this. I should be able to take a look in the next few days.

from paris.

ngsilverman avatar ngsilverman commented on May 13, 2024

@ioterateam I looked into this and am unable to reproduce the issue.

There's a test here that asserts rather convincingly that setting inputType to textPassword is working. I also played around with a sample and was able to confirm that applying a style containing <item name="android:inputType">textPassword</item> in the same way that you do was successfully changing the input type (the password was not visible).

At this point I'm pretty sure it's not a bug with Paris but rather an issue on your end. I would recommend trying it out with a simpler style that doesn't change any other attributes. How are you currently verifying that the input type is being set to a visible password rather than the standard one? Note that the last character of the password might be visible even if the input type is textPassword. textVisiblePassword makes it completely visible.

from paris.

ioterateam avatar ioterateam commented on May 13, 2024

i found a bug that makes it visible, it's because of attribute <item name="android:singleLine">true</item> in the style. When I exclude it, it's work like normal and show me textPassword, can you re-check it?

from paris.

ngsilverman avatar ngsilverman commented on May 13, 2024

Thanks for investigating some more, I'm able to repro now. I'll look into this soon.

from paris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.