ppartisan / rundo Goto Github PK
View Code? Open in Web Editor NEWAdds Undo/Redo functionality to editable text fields in Android.
License: MIT License
Adds Undo/Redo functionality to editable text fields in Android.
License: MIT License
Im getting Fatal Exception: java.lang.StringIndexOutOfBoundsException
my logs :
java.lang.String.substring (String.java:1931)
com.werdpressed.partisan.rundo.SubtractStrings.getReplacedText (Unknown Source)
com.werdpressed.partisan.rundo.SubtractStrings.getItem (Unknown Source)
com.werdpressed.partisan.rundo.WriteToArrayDequeRunnable.run (Unknown Source)
android.os.Handler.handleCallback (Handler.java:751)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6682)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1534)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1424)
Im running version : 1.0.5
I have an activity with a fragmentPager and fragments, compiled against SDK28.
But i assume the bug could be reproduced with every activity using RunDo.
Change the text of the linked EditText. Then rotate the device. The activity and thus RunDo(Support) get rebuild. But RunDo is in a broken state: neither undo nor redo will work. Even when changing the linked EditText's text again.
I think the bug is happening on this line:
RunDo gets instantiated with TRACKING_ENDED, what would work fine.
But when resuming, it is set on TRACKING_STARTED, leaving RunDo in a somewhat illegal state.
Sometimes when I undo, I need to do it a couple times before it happens (2-4 times) Only the cursor moves but the text doesn't change. Is this normal?
How can I get queue size? I want to use it to disable the undo and redo buttons when queue is empty.
The link is broken. And the tinypic fallback looks very sad. Please fix or remove the broken link.
How can I use this on my view which extends EditText? I can't return EditText on getEditText() method because it isn't one.
you suppose i have 3 EditText on xml layout, how can i attach RunDo on one of them?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.