Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
14d3a7ae
Commit
14d3a7ae
authored
Oct 19, 2014
by
Thomas Guillem
Committed by
Max Kellermann
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: use a gray notification icon
parent
f37ab548
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile.am
Makefile.am
+4
-1
Main.java
android/src/Main.java
+3
-3
No files found.
Makefile.am
View file @
14d3a7ae
...
...
@@ -328,7 +328,7 @@ $(ANDROID_XML_RES_COPIES): $(ANDROID_XML_RES)
@
$(MKDIR_P)
$
(
dir
$@
)
cp
$
(
patsubst android/build/%,
$(srcdir)
/android/%,
$@
)
$@
android/build/resources.apk
:
$(ANDROID_XML_RES_COPIES) android/build/res/drawable/icon.png
android/build/resources.apk
:
$(ANDROID_XML_RES_COPIES) android/build/res/drawable/icon.png
android/build/res/drawable/notification_icon.png
@
$(MKDIR_P)
android/build/gen
$(AAPT)
package
-f
-m
--auto-add-overlay
\
--custom-package
org.musicpd
\
...
...
@@ -362,6 +362,9 @@ android/build/res/drawable/icon.png: mpd.svg
mkdir
-p
$
(
@D
)
rsvg-convert
--width
=
48
--height
=
48
$<
-o
$@
android/build/res/drawable/notification_icon.png
:
android/build/res/drawable/icon.png
convert
$<
-colorspace
Gray
-gamma
2.2
$@
.DELETE_ON_ERROR
:
android/build/unsigned.apk
android/build/unsigned.apk
:
android/build/classes.dex android/build/resources.apk android/build/lib/$(ANDROID_ABI)/libmpd.so
cp
android/build/resources.apk
$@
...
...
android/src/Main.java
View file @
14d3a7ae
...
...
@@ -206,19 +206,19 @@ public class Main extends Service implements Runnable {
notification
=
buildNotificationJB
(
R
.
string
.
notification_title_mpd_running
,
R
.
string
.
notification_text_mpd_running
,
R
.
drawable
.
icon
,
R
.
drawable
.
notification_
icon
,
contentIntent
);
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
HONEYCOMB
)
notification
=
buildNotificationHC
(
R
.
string
.
notification_title_mpd_running
,
R
.
string
.
notification_text_mpd_running
,
R
.
drawable
.
icon
,
R
.
drawable
.
notification_
icon
,
contentIntent
);
else
notification
=
buildNotificationGB
(
R
.
string
.
notification_title_mpd_running
,
R
.
string
.
notification_text_mpd_running
,
R
.
drawable
.
icon
,
R
.
drawable
.
notification_
icon
,
contentIntent
);
startForeground
(
R
.
string
.
notification_title_mpd_running
,
notification
);
...
...
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