From 948ef762cd370ba591cf11c2366c2e08e0a55f48 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 6 Apr 2015 00:00:24 +0200 Subject: [PATCH] Use notification icon that matches the guidelines. --- app/src/main/java/org/yaaic/irc/IRCService.java | 4 ++-- .../main/res/drawable-hdpi/ic_notification.png | Bin 0 -> 704 bytes .../main/res/drawable-mdpi/ic_notification.png | Bin 0 -> 470 bytes .../main/res/drawable-xhdpi/ic_notification.png | Bin 0 -> 979 bytes .../main/res/drawable-xxhdpi/ic_notification.png | Bin 0 -> 1475 bytes 5 files changed, 2 insertions(+), 2 deletions(-) create mode 100755 app/src/main/res/drawable-hdpi/ic_notification.png create mode 100755 app/src/main/res/drawable-mdpi/ic_notification.png create mode 100755 app/src/main/res/drawable-xhdpi/ic_notification.png create mode 100755 app/src/main/res/drawable-xxhdpi/ic_notification.png diff --git a/app/src/main/java/org/yaaic/irc/IRCService.java b/app/src/main/java/org/yaaic/irc/IRCService.java index 470cb43..9b436dc 100644 --- a/app/src/main/java/org/yaaic/irc/IRCService.java +++ b/app/src/main/java/org/yaaic/irc/IRCService.java @@ -191,7 +191,7 @@ public class IRCService extends Service foreground = true; // Set the icon, scrolling text and timestamp - notification = new Notification(R.mipmap.ic_launcher, getText(R.string.notification_running), System.currentTimeMillis()); + notification = new Notification(R.drawable.ic_notification, getText(R.string.notification_running), System.currentTimeMillis()); // The PendingIntent to launch our activity if the user selects this notification Intent notifyIntent = new Intent(this, MainActivity.class); @@ -221,7 +221,7 @@ public class IRCService extends Service private void updateNotification(String text, String contentText, boolean vibrate, boolean sound, boolean light) { if (foreground) { - notification = new Notification(R.mipmap.ic_launcher, text, System.currentTimeMillis()); + notification = new Notification(R.drawable.ic_notification, text, System.currentTimeMillis()); Intent notifyIntent = new Intent(this, MainActivity.class); notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notifyIntent, 0); diff --git a/app/src/main/res/drawable-hdpi/ic_notification.png b/app/src/main/res/drawable-hdpi/ic_notification.png new file mode 100755 index 0000000000000000000000000000000000000000..d9ce7cd03cbf3a4e5f2a619e29cc4cf1122cfb99 GIT binary patch literal 704 zcmV;x0zdtUP)aZl%f=qk_UO<1zHhBxYp?IW))Ec2)L=aP-#}(I3|IuL z1eO7FfoZ^GU^ws-_z1iOUII^nN5C^lzsmU3m8`cNb<@T-~w<|(uYF!iUOJ0M&KMUy9OXh6R&~Yl5Qn83Idtg0pJ)g zvJNn@Nzb>#l1_v^h5(t_UZAUvAW75hl1{~c4gxZ>Rlpr!RE9u5fEG!2-REB*GaCUs z0hVS66T5m2ESK~>1lkH*%K;{K*(Rww1iA`r%Ms{?q|G6ai`Tpyf%+uP3V~emT?q49 z1Cl0$K<|L5dC>sxB~1x|9!5noFQy(zD?*?nuAF(%0G*OLLZBw#1u!NDsBgexNxey> zJ_)qv0MsRE{~)FIA7UQ$i(|q0Yy+tqG51s5vLuJIx_=`pjrUWl}QC0zlzGjr*fdGj!=;F zKGFKLvY~+EGm`dY3KZnjmPjU6NAv!lEuVfRolk?RS%eC_!a0#lcwJlw^hk{ISg<9Uizwaz0000bmpezE_ON!-> z)ly0S7n)d*fSGjzP61PrdaKg-%fN4v{tM%`B4B16fYZRtDg~1k_JY6lBz8_x z;Mq&-sG9S3OIlNufSHX3Ze;MLNlWqzFhSDw96(+M%K!J~2n@)=dj)(nN$MLWa1|I|0q`s!?n)XJCa@P+m4){T`1nhb zSIK#Mzza98H|oK>Ch|i!k3c)%J}|7t89eshTaq_E`KPX#{SmZvwaj6Oq$90L3I8GJ zz&tgzR!ZmMy$DQ`^tB*?fJ8sw8ZfBF(%`T8@sj-eyA|umd>@>zp>yG1V7jC`;YBUg z6MJ>)ZROB5&V+B;xsvV`iX%#u=mq$OX{$Z)H{hH0d9g)|)P>BfeITuD1)7iV49q1+ zZ*33cUYDr}7*2XVgfC}%*<72Cov8f2@C=H1AeNpLxD531Aq(!NsueOL42*v9Ht@WoOL3$Qkd2Vh{l3LX=&@vD+ zbGc>%umJE&!LYporY5;s$^m3TAm_}?yhL9J{0?|i-qOFY88C z`sJZt$q0)?WYs002ovPDHLkV1jtO B%4Prn literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_notification.png b/app/src/main/res/drawable-xxhdpi/ic_notification.png new file mode 100755 index 0000000000000000000000000000000000000000..fa7c09500f720ded96c12ba077d960534c548195 GIT binary patch literal 1475 zcmV;!1w8tRP)f(B7kBABQVV!;xB#2^X@BzD0riVeYni47q}#b08L zf?`yR4Woht5ksc{QLM$nR#~3x#!Hx5hH0!KqEfw35)=B z@Q@Lp5ukFL$jF20;z1Fy2Cx&b7qBC+Gq5?ZHLxkLQIoE}06zd<0^b6k0iOcz1Ir}+ zRn9l^_3oJmMa0^`{=kvIp}>B?E}Rl>mx}b%2wBGk{|N|J@Jy19$;=7H0{eD5`55*42$&`5xo+kw3@9SD0P~}3A_dzGO%VBQ`{He z110^|+${^x*+8yczL*}hZaq`dZ5;tc#3sPozz(%Gr+VeSa>PN>*NsE3;z1E{K5$p{ z^AE&`mr1%l6Hp3jEd~x72y?1e@&m`PBsnVZul&!0BH{qxtqOu#)vG>sBTkg`au%Rj zK-+`U*y-7~nJ$-fMHZlkQZ%q{+SOp zIlYz##hJh@Lk?)Jq^q(3*|mI8bsl{f#cAy$B>A}0(u2I@UK!$j$oc+*8Ve&@-R92) z?j1(=0al3#wF0zpT4pX)875ht;z8dv8l4qUbajUBWy2&FNV>b(;4DDiq`em%J|u+R z1rBbE1GU_w8(~Dm-YKiG|tQ(nvmrbmJGR#Ql>N}DF>@htoDWLCW& zIkC1no{d^&GCFS3%`_vz1yVPzMj2MeoUfMTGM={5(Sug>PHAXoJGSUFXwCocJ!gib zNAl>I8;}Q!h&_QP0T*fxqI{C-gO=n~z7U`U$+gXMf%67v$$3dRQ#?=7H+kW>U12~C zOU|+D+nv)cGGQOu`tt39Dc4gMmaYLMZ*p186t8I?v20Vk#9SNR+*jP^2G2rQ7a ztSpqq{ykGZ<@x<^Wnx->u8`fe;wpR>8Z1b0Et}979xXXm%kKRIm<$Y8J#i*#VV9a#iI6rQ@R{)v81y5Slg-l>Oski{ItOZOa9^&71ufMCdn!D zo=D#TB}hIyJ)6F8MGd_{(xpW^5_aut3+xKsL{%Z*e*RgH!uh6wrxS-MM-{e zT!{=6pe9&;o9}8=2kIOvccj4YOzvs-{;Mdpfdy35&~Dq00CgZY0yF~D?c(~c-^hbT d9#qbQ{sI4(WLS}UA_)Kh002ovPDHLkV1nvQyvYCn literal 0 HcmV?d00001