(Android) Some more checks in input code