New SVG icon for the notification
This commit is contained in:
parent
6f639e5da8
commit
d16ee80ce9
@ -171,7 +171,7 @@ public class FloatingCalculatorService extends Service implements FloatingViewLi
|
|||||||
|
|
||||||
private void showNotification() {
|
private void showNotification() {
|
||||||
final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||||
builder.setSmallIcon(R.drawable.kb_logo);
|
builder.setSmallIcon(R.drawable.ic_calculator_white_24dp);
|
||||||
builder.setContentTitle(getText(R.string.c_app_name));
|
builder.setContentTitle(getText(R.string.c_app_name));
|
||||||
builder.setContentText(getString(R.string.open_onscreen_calculator));
|
builder.setContentText(getString(R.string.open_onscreen_calculator));
|
||||||
builder.setOngoing(true);
|
builder.setOngoing(true);
|
||||||
|
9
app/src/main/res/drawable/ic_calculator_white_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_calculator_white_24dp.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="24.0"
|
||||||
|
android:viewportWidth="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#ffffff"
|
||||||
|
android:pathData="M11,9h2v2h-2zM9,11h2v2L9,13zM13,11h2v2h-2zM15,9h2v2h-2zM7,9h2v2L7,11zM19,3L5,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2zM9,17L7,17v-2h2v2zM13,17h-2v-2h2v2zM17,17h-2v-2h2v2zM19,11h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2L9,15v-2L7,13v2L5,15v-2h2v-2L5,11L5,5h14v6z"/>
|
||||||
|
</vector>
|
Loading…
Reference in New Issue
Block a user