Commit 64e84564 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

The notification now has a different icon when the app is paused

parent c7e62979
......@@ -328,10 +328,12 @@ class DnsVpnService : VpnService(), Runnable {
destroy(false)
pauseNotificationAction?.title = getString(R.string.all_resume)
pauseNotificationAction?.icon = R.drawable.ic_stat_resume
notificationBuilder.setSmallIcon(R.drawable.ic_notification_paused)
} else {
recreateVpn(false, null)
pauseNotificationAction?.title = getString(R.string.all_pause)
pauseNotificationAction?.icon = R.drawable.ic_stat_pause
notificationBuilder.setSmallIcon(R.drawable.ic_mainnotification)
}
updateNotification()
}
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M11,16H9V9H11V16ZM13,16V9H15V16H13Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M19.2174,12.0356C18.2949,11.9701 17.5596,11.2921 17.3866,10.4204C16.885,7.8923 14.6632,6 12,6C11.7674,6 11.5383,6.0144 11.3136,6.0425C11.4356,6.3418 11.5097,6.6646 11.5271,7H9.5188C9.4988,6.8769 9.4552,6.762 9.3929,6.6602C9.2689,6.4576 9.0708,6.3069 8.8372,6.2471C8.7653,6.2288 8.69,6.219 8.6124,6.219H6.9278C6.8601,6.219 6.8184,6.1571 6.8309,6.1006C6.8348,6.083 6.844,6.0659 6.8594,6.0514C6.882,6.0298 6.9048,6.0085 6.9278,5.9872C7.3722,5.576 7.8663,5.218 8.4003,4.9236C8.4703,4.8849 8.541,4.8474 8.6124,4.811C8.931,4.6485 9.2627,4.5082 9.6056,4.3921C10.357,4.1379 11.1621,4 12,4C15.6368,4 18.6647,6.5855 19.3483,10.031C19.3493,10.0363 19.3538,10.0403 19.359,10.0406C21.9546,10.2249 24,12.363 24,15C24,17.76 21.76,20 19,20H6C2.69,20 0,17.3099 0,14C0,12.301 0.7059,10.7701 1.8395,9.6808C3.0213,8.5452 4.6321,8.2177 6.299,8.1241C6.508,8.1124 6.7178,8.1043 6.9278,8.0988C6.9518,8.0982 6.9759,8.0976 7,8.097V10.0977C6.3941,10.1127 5.8307,10.1488 5.2949,10.2356C4.3469,10.3891 3.6922,10.6743 3.2253,11.1229C2.4678,11.8508 2,12.8675 2,14C2,16.2054 3.7946,18 6,18H19C20.6554,18 22,16.6554 22,15C22,13.4331 20.7865,12.147 19.2174,12.0356Z"
android:fillColor="#ffffff"/>
</vector>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment