AndreiD / SimpleChat

The best room chat system for Android. Real-time, IRC Style using firebase as database.
101 stars 46 forks source link

When I hit send button it takes more then a 10 sec to appear from Textview to chat list #5

Open BlueYeti1881 opened 6 years ago

BlueYeti1881 commented 6 years ago

What happens is when I hit send button, it takes more then a 10 sec to disapper from textview and appear on chat list.

How can I solve this?

and is there any way I can make another list of parents list and add your activity as child list for invidual parent list. For example I'll have A , B and C parents and If i want to chat inside group A , I will click A and inside it I could be able to chat with others

SamSnow commented 6 years ago

Hi @BlueYeti1881 I have the same problem, it takes ~10 sec to send a message, did you find a solution?

SamSnow commented 6 years ago

Ok I found why. "Skipped xx frames! The application may be doing too much work on its main thread." Something was taking to much time when calling process_new_message.

Its works fine when I remove this part of the code //yes, admins can swear ;) if ((PROFANITY_FILTER_ACTIVE) && (!IS_ADMIN)) { new_message = new_message.replaceAll(ProfanityFilter.censorWords(ProfanityFilter.ENGLISH), ":)"); }