diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-07-22 15:31:54 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-07-22 15:31:54 +0200 |
commit | 84642b749291e2766cecb394c608b1b9b7e64bb2 (patch) | |
tree | d427f0f7b7e62c821613f8ab821df78dfe6c121f /src/eu/siacs/conversations/ui/XmppActivity.java | |
parent | 9e1c6686136b12d16916c94c00b644ebd0507ae1 (diff) |
refactored message adapter into seperate class
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/XmppActivity.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java index c813182f3..fad4d026f 100644 --- a/src/eu/siacs/conversations/ui/XmppActivity.java +++ b/src/eu/siacs/conversations/ui/XmppActivity.java @@ -40,6 +40,9 @@ public abstract class XmppActivity extends Activity { public boolean xmppConnectionServiceBound = false; protected boolean handledViewIntent = false; + protected int mPrimaryTextColor; + protected int mSecondaryTextColor; + protected interface OnValueEdited { public void onValueEdited(String value); } @@ -157,6 +160,8 @@ public abstract class XmppActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ExceptionHelper.init(getApplicationContext()); + mPrimaryTextColor = getResources().getColor(R.color.primarytext); + mSecondaryTextColor = getResources().getColor(R.color.secondarytext); } public void switchToConversation(Conversation conversation) { @@ -355,4 +360,12 @@ public abstract class XmppActivity extends Activity { Log.d("xmppService","inviting "+contactJid+" to "+conversation.getName(true)); } } + + public int getSecondaryTextColor() { + return this.mSecondaryTextColor; + } + + public int getPrimaryTextColor() { + return this.mPrimaryTextColor; + } } |