Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
ec790d5e
Commit
ec790d5e
authored
Jan 23, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Persistent notification made red.
parent
c5fd9d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
NotificationManager.java
...xabber/android/data/notification/NotificationManager.java
+5
-0
No files found.
app/src/main/java/com/xabber/android/data/notification/NotificationManager.java
View file @
ec790d5e
...
...
@@ -73,6 +73,9 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
private
static
final
long
VIBRATION_DURATION
=
500
;
private
static
final
int
MAX_NOTIFICATION_TEXT
=
80
;
public
static
final
int
COLOR_MATERIAL_RED_500
=
0xF44336
;
private
final
long
startTime
;
private
final
Application
application
;
private
final
android
.
app
.
NotificationManager
notificationManager
;
...
...
@@ -384,6 +387,8 @@ public class NotificationManager implements OnInitializedListener, OnAccountChan
persistentNotificationBuilder
.
setStyle
(
null
);
persistentNotificationBuilder
.
setLargeIcon
(
null
);
persistentNotificationBuilder
.
setColor
(
COLOR_MATERIAL_RED_500
);
if
(
SettingsManager
.
eventsPersistent
())
{
// Ongoing icons are in the left side, so always use it.
persistentNotificationBuilder
.
setWhen
(
startTime
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment