Added error logging

pull/209/head
M66B 2 years ago
parent 094d610032
commit 4db117cce0

@ -2254,6 +2254,8 @@ public class FragmentMessages extends FragmentBase
try { try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;
if (rvMessage.isComputingLayout())
Log.e("isComputingLayout");
for (Integer pos : changed) for (Integer pos : changed)
adapter.notifyItemChanged(pos); adapter.notifyItemChanged(pos);
} catch (Throwable ex) { } catch (Throwable ex) {
@ -2302,6 +2304,8 @@ public class FragmentMessages extends FragmentBase
try { try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;
if (rvMessage.isComputingLayout())
Log.e("isComputingLayout");
adapter.notifyItemChanged(p); adapter.notifyItemChanged(p);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); Log.e(ex);
@ -2328,8 +2332,9 @@ public class FragmentMessages extends FragmentBase
try { try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;
if (adapter != null) if (rvMessage.isComputingLayout())
adapter.notifyItemChanged(pos); Log.e("isComputingLayout");
adapter.notifyItemChanged(pos);
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex); Log.e(ex);
/* /*
@ -2574,6 +2579,8 @@ public class FragmentMessages extends FragmentBase
try { try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;
if (rvMessage.isComputingLayout())
Log.e("isComputingLayout");
rvMessage.setItemViewCacheSize(0); rvMessage.setItemViewCacheSize(0);
rvMessage.getRecycledViewPool().clear(); rvMessage.getRecycledViewPool().clear();
rvMessage.setItemViewCacheSize(ITEM_CACHE_SIZE); rvMessage.setItemViewCacheSize(ITEM_CACHE_SIZE);
@ -2977,6 +2984,8 @@ public class FragmentMessages extends FragmentBase
try { try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return; return;
if (rvMessage.isComputingLayout())
Log.e("isComputingLayout");
if (pos == NO_POSITION) if (pos == NO_POSITION)
adapter.notifyDataSetChanged(); adapter.notifyDataSetChanged();
else else

Loading…
Cancel
Save