aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/XmppActivity.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-22 13:23:35 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-22 13:23:35 +0200
commit45aede14bd7d384e8adbcd6697ba39b1dcbf77b4 (patch)
tree760d017b369aa8648c00234ad979f42f1ee6e9cb /src/eu/siacs/conversations/ui/XmppActivity.java
parentbb065020ff6145adf8fb2726928f11e0ea7140b6 (diff)
fixed #452
Diffstat (limited to 'src/eu/siacs/conversations/ui/XmppActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/XmppActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java
index 351462aee..26a33d1a8 100644
--- a/src/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/eu/siacs/conversations/ui/XmppActivity.java
@@ -62,6 +62,8 @@ public abstract class XmppActivity extends Activity {
protected int mColorOrange;
protected int mColorGreen;
protected int mPrimaryColor;
+
+ protected boolean mUseSubject = true;
private DisplayMetrics metrics;
@@ -207,12 +209,17 @@ public abstract class XmppActivity extends Activity {
if (getPreferences().getBoolean("use_larger_font", false)) {
setTheme(R.style.ConversationsTheme_LargerText);
}
+ mUseSubject = getPreferences().getBoolean("use_subject", true);
}
protected SharedPreferences getPreferences() {
return PreferenceManager
.getDefaultSharedPreferences(getApplicationContext());
}
+
+ public boolean useSubjectToIdentifyConference() {
+ return mUseSubject;
+ }
public void switchToConversation(Conversation conversation) {
switchToConversation(conversation, null, false);