mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 07:09:56 +01:00
fixed forum crash bug
This commit is contained in:
@@ -27,10 +27,8 @@ import org.briarproject.R;
|
|||||||
import org.briarproject.android.ActivityComponent;
|
import org.briarproject.android.ActivityComponent;
|
||||||
import org.briarproject.android.BriarActivity;
|
import org.briarproject.android.BriarActivity;
|
||||||
import org.briarproject.android.api.AndroidNotificationManager;
|
import org.briarproject.android.api.AndroidNotificationManager;
|
||||||
import org.briarproject.android.controller.handler.ResultHandler;
|
|
||||||
import org.briarproject.android.controller.handler.UiResultHandler;
|
import org.briarproject.android.controller.handler.UiResultHandler;
|
||||||
import org.briarproject.android.util.BriarRecyclerView;
|
import org.briarproject.android.util.BriarRecyclerView;
|
||||||
import org.briarproject.android.util.CustomAnimations;
|
|
||||||
import org.briarproject.api.sync.GroupId;
|
import org.briarproject.api.sync.GroupId;
|
||||||
import org.briarproject.util.StringUtils;
|
import org.briarproject.util.StringUtils;
|
||||||
|
|
||||||
@@ -551,17 +549,9 @@ public class ForumActivity extends BriarActivity implements
|
|||||||
.getColor(ForumActivity.this,
|
.getColor(ForumActivity.this,
|
||||||
R.color.forum_cell_highlight));
|
R.color.forum_cell_highlight));
|
||||||
} else if (data.equals(addedEntry)) {
|
} else if (data.equals(addedEntry)) {
|
||||||
CustomAnimations.animateColorTransition(ui.cell, ContextCompat
|
ui.cell.setBackgroundColor(ContextCompat
|
||||||
.getColor(ForumActivity.this,
|
.getColor(ForumActivity.this,
|
||||||
R.color.window_background), 3000,
|
R.color.forum_cell_highlight));
|
||||||
new ResultHandler<Void>() {
|
|
||||||
@Override
|
|
||||||
public void onResult(Void result) {
|
|
||||||
ui.setIsRecyclable(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// don't allow cell recycling until the animation finishes
|
|
||||||
ui.setIsRecyclable(false);
|
|
||||||
addedEntry = null;
|
addedEntry = null;
|
||||||
} else {
|
} else {
|
||||||
ui.cell.setBackgroundColor(ContextCompat
|
ui.cell.setBackgroundColor(ContextCompat
|
||||||
|
|||||||
Reference in New Issue
Block a user