Merge pull request #924 from andersruneson/changeonlinecolor
Changed online color to green instead of primary
This commit is contained in:
commit
7769d305e6
|
@ -687,6 +687,10 @@ public abstract class XmppActivity extends Activity {
|
||||||
return this.mPrimaryColor;
|
return this.mPrimaryColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getOnlineColor() {
|
||||||
|
return this.mColorGreen;
|
||||||
|
}
|
||||||
|
|
||||||
public int getSecondaryBackgroundColor() {
|
public int getSecondaryBackgroundColor() {
|
||||||
return this.mSecondaryBackgroundColor;
|
return this.mSecondaryBackgroundColor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class AccountAdapter extends ArrayAdapter<Account> {
|
||||||
statusView.setText(getContext().getString(account.getStatus().getReadableId()));
|
statusView.setText(getContext().getString(account.getStatus().getReadableId()));
|
||||||
switch (account.getStatus()) {
|
switch (account.getStatus()) {
|
||||||
case ONLINE:
|
case ONLINE:
|
||||||
statusView.setTextColor(activity.getPrimaryColor());
|
statusView.setTextColor(activity.getOnlineColor());
|
||||||
break;
|
break;
|
||||||
case DISABLED:
|
case DISABLED:
|
||||||
case CONNECTING:
|
case CONNECTING:
|
||||||
|
|
Loading…
Reference in a new issue