Add 15 seconds tail for better move visualization
This commit is contained in:
parent
336827fc67
commit
6857b98523
1 changed files with 3 additions and 2 deletions
|
@ -162,15 +162,16 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
||||||
group = storage.getGroup(gid);
|
group = storage.getGroup(gid);
|
||||||
if(group != null) {
|
if(group != null) {
|
||||||
List<OsMoDevice> delta = mergeGroup(group, obj, false);
|
List<OsMoDevice> delta = mergeGroup(group, obj, false);
|
||||||
|
String mygid = service.getMyGroupTrackerId();
|
||||||
StringBuilder b = new StringBuilder();
|
StringBuilder b = new StringBuilder();
|
||||||
for(OsMoDevice d : delta) {
|
for(OsMoDevice d : delta) {
|
||||||
if(d.getDeletedTimestamp() != 0 && d.isEnabled()) {
|
if(d.getDeletedTimestamp() != 0 && d.isEnabled()) {
|
||||||
if(group.name != null) {
|
if(group.name != null && !d.getTrackerId().equals(mygid)) {
|
||||||
b.append(app.getString(R.string.osmo_user_left, d.getVisibleName(), group.getVisibleName(app))).append("\n");
|
b.append(app.getString(R.string.osmo_user_left, d.getVisibleName(), group.getVisibleName(app))).append("\n");
|
||||||
}
|
}
|
||||||
disconnectImpl(d);
|
disconnectImpl(d);
|
||||||
} else if(!d.isActive()) {
|
} else if(!d.isActive()) {
|
||||||
if(group.name != null) {
|
if(group.name != null && !d.getTrackerId().equals(mygid)) {
|
||||||
b.append(app.getString(R.string.osmo_user_joined, d.getVisibleName(), group.getVisibleName(app))).append("\n");
|
b.append(app.getString(R.string.osmo_user_joined, d.getVisibleName(), group.getVisibleName(app))).append("\n");
|
||||||
}
|
}
|
||||||
connectDeviceImpl(d);
|
connectDeviceImpl(d);
|
||||||
|
|
Loading…
Reference in a new issue