Back to project page SmartNotify.
The source code is released under:
Copyright (c) 2014, Sergey Parshin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project SmartNotify listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.quarck.smartnotify; // w ww.j a va 2s . c om import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class ToggleMuteBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { GlobalState.setIsMuted(context, ! GlobalState.getIsMuted(context)); OngoingNotificationManager.updateNotification(context); } }