mogutt / ttandroidclient Goto Github PK
View Code? Open in Web Editor NEWThe android client of mogutt
Home Page: http://tt.mogu.io/
The android client of mogutt
Home Page: http://tt.mogu.io/
current logic is full of SHIT and error prone, thoughts:
. send picture message should be handled in the IMMessageManager, not in GUI layer
. notify using broadcast, just like other features, so GUI and IMMessageManager is weak bounds
. read the original logic again
. read the text re-sending logic again
historical reason, make pinktoast to toast
write simple manuals etc.
adding pictures, app's login page, contact list page, chat dialog, so people could have a feel about what's the app looks like
when network is back, we would connect the server immediately, if failed, we starts the exponential backoff strategy.
But because the WIFI needs authentication, it would take 3 minutes normally, so reconnecting is not soon to reconnect.
RC: public void e(String format, Object... args) {
if (displayFlag && logLevel <= Log.ERROR) {
lock.lock();
String message = createMessage(String.format(format, args));
Log.e(tagName, message);
lock.unlock();
}
}
args is null
solve "exists" first, then to solve "good" later
deliver fast and perfection is not beautiful
RC: didn't save the flag to the db yet.
this is due to original's webimageview, no way to cache avatars locally, so this bug depends on previous
"replacing web image view" issue
Original author uses web-image-view to load contact avatars, though this is really a very quick way to finish the job, but we can't accurately control the memory usage, and OOM(Out Of Memory) risk is very high.
2 options, 1 to use universal-image-downloader, 2 to write our own version using "lrucache" to control maximum memory usage and "disk-lru-cache" to cache images to disk.
I'd like to prefer the 1 one for this project though.it would cost less time, and we can use it to resize to a smaller size.
right now, downloading a big size image failed.
ask UI to draw them
move 3 search bars to only 1 global search bars at the top of the app, just like wechat style.
it supports searching:
. contacts
. departments
. groups
. temp groups
both original chararacters or the corresponding Chinease PinYin
java 1.7 imports many new features which would cut the source code size a lot and more convenient, we should switch to java 1.7 next version
logger.e(e.getMessage());
right now, to register an action and responds it, we need to steps:
1. List actions = new ArrayList();
actions.add(IMActions.ACTION_CONTACT_READY);
imServiceHelper.connect(getActivity(), actions, IMServiceHelper.INTENT_NO_PRIORITY, this);
@OverRide
public void onAction(String action, Intent intent,
BroadcastReceiver broadcastReceiver) {
logger.d("detail#onAction action:%s", action);
if (action.equals(IMActions.ACTION_CONTACT_READY)) {
init();
}
}
this is boring, we should use 1 step to finish the whole process
List actionList = new ArrayList();
actionList.add(new Action(IMActions.ACTION_CONTACT_READY, new ActionHandler {
//onAction member function
});
do re-downloading procedure
need to disable it based on the current contact is administrator or not
. online contact's icon
. group/temp group's icon
. chat window pushwand refresh icon and text (ask for dongxie)
. chat message blue bubble need smoothly stretch
. peer's voice message has red icon right now, replace it with another color
. select image activity uses "red" icons for checkbox and ok button
. Chinase Hanyu Pinyin's background is green now
right now, this is a big switch-case, make it a table to manage the packet
in temp group management window, we can add or delete members.Right now, we hasn't implemented deleting temp group feature, so at least remain 1 member in the group.
wechat has lesser vibration time, we also need to reduce it.
RC should because of different picture url prefix
. when deliver to trial users, we so shuld find a way to collect materials of the issue and as so to solve the issue efficiently
also add loading icons in "contacts" and "my" tab page
right now, sliding contact list is very slow, need to optimize it
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.