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

Crash with disabled "Group by account" option fixed.

parent 7ab382c8
...@@ -333,6 +333,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat ...@@ -333,6 +333,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
color = accountSubgroupColors[level]; color = accountSubgroupColors[level];
viewHolder.groupOfflineIndicator.setVisibility(View.VISIBLE); viewHolder.groupOfflineIndicator.setVisibility(View.VISIBLE);
if (!configuration.getAccount().equalsIgnoreCase(GroupManager.NO_ACCOUNT)) {
StatusMode statusMode = AccountManager.getInstance().getAccount(configuration.getAccount()).getDisplayStatusMode(); StatusMode statusMode = AccountManager.getInstance().getAccount(configuration.getAccount()).getDisplayStatusMode();
if (statusMode == StatusMode.unavailable || statusMode == StatusMode.connection) { if (statusMode == StatusMode.unavailable || statusMode == StatusMode.connection) {
...@@ -341,6 +342,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat ...@@ -341,6 +342,7 @@ public abstract class GroupedContactAdapter extends BaseAdapter implements Updat
viewHolder.offlineShadow.setVisibility(View.GONE); viewHolder.offlineShadow.setVisibility(View.GONE);
} }
} }
}
view.setBackgroundDrawable(new ColorDrawable(color)); view.setBackgroundDrawable(new ColorDrawable(color));
......
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