Commit 35f8f6e9 authored by Grigory Fedorov's avatar Grigory Fedorov

Crash with disabled "Group by account" option fixed.

parent 7ab382c8
...@@ -333,12 +333,14 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat ...@@ -333,12 +333,14 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
color = accountSubgroupColors[level]; color = accountSubgroupColors[level];
viewHolder.groupOfflineIndicator.setVisibility(View.VISIBLE); viewHolder.groupOfflineIndicator.setVisibility(View.VISIBLE);
StatusMode statusMode = AccountManager.getInstance().getAccount(configuration.getAccount()).getDisplayStatusMode(); if (!configuration.getAccount().equalsIgnoreCase(GroupManager.NO_ACCOUNT)) {
StatusMode statusMode = AccountManager.getInstance().getAccount(configuration.getAccount()).getDisplayStatusMode();
if (statusMode == StatusMode.unavailable || statusMode == StatusMode.connection) { if (statusMode == StatusMode.unavailable || statusMode == StatusMode.connection) {
viewHolder.offlineShadow.setVisibility(View.VISIBLE); viewHolder.offlineShadow.setVisibility(View.VISIBLE);
} else { } else {
viewHolder.offlineShadow.setVisibility(View.GONE); viewHolder.offlineShadow.setVisibility(View.GONE);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment