OK i just started to review my code again. Why hasn't anyone found an answer? It's really not that hard.
So i just just surrounded the if-statements
in every try block with another if-statement
which looks like this:
if(edittext.isFocused()){
try-catch block
}
And now everything works just fine. There is no StackOverflowException
anymore because the textwatcher
only starts it's work where the edittext
is focused. The text changes do not trigger an infinit loop anymore.