more fixes for notfication in conferences
This commit is contained in:
parent
98a80ffc61
commit
de2964cd25
|
@ -334,7 +334,7 @@ public class UIHelper {
|
||||||
boolean vibrate = preferences.getBoolean("vibrate_on_notification",
|
boolean vibrate = preferences.getBoolean("vibrate_on_notification",
|
||||||
true);
|
true);
|
||||||
boolean alwaysNotify = preferences.getBoolean(
|
boolean alwaysNotify = preferences.getBoolean(
|
||||||
"notify_in_conversation_when_highlighted", false) && notify;
|
"notify_in_conversation_when_highlighted", false);
|
||||||
|
|
||||||
if (!showNofifications) {
|
if (!showNofifications) {
|
||||||
mNotificationManager.cancel(2342);
|
mNotificationManager.cancel(2342);
|
||||||
|
@ -345,7 +345,7 @@ public class UIHelper {
|
||||||
|
|
||||||
if ((currentCon != null)
|
if ((currentCon != null)
|
||||||
&& (currentCon.getMode() == Conversation.MODE_MULTI)
|
&& (currentCon.getMode() == Conversation.MODE_MULTI)
|
||||||
&& (!alwaysNotify)) {
|
&& (!alwaysNotify) && notify) {
|
||||||
String nick = currentCon.getMucOptions().getActualNick();
|
String nick = currentCon.getMucOptions().getActualNick();
|
||||||
Pattern highlight = generateNickHighlightPattern(nick);
|
Pattern highlight = generateNickHighlightPattern(nick);
|
||||||
Matcher m = highlight.matcher(currentCon.getLatestMessage()
|
Matcher m = highlight.matcher(currentCon.getLatestMessage()
|
||||||
|
|
Loading…
Reference in New Issue