FlashNotifier/src/main/java/com/pandanomic/flashnotifier/FragmentMainTab.java
public void toggleService() {
        if (mServiceSwitch.isChecked()) {
            mServiceRunning = true;
            getActivity().startService(new Intent(getActivity(), SMSCallListener.class));
            updateServiceStatus();
        } else {
            mServiceRunning = false;
            getActivity().stopService(new Intent(getActivity(), SMSCallListener.class));
            updateServiceStatus();
        }
    }
/**
     * Toggle the service if the checkboxview is clicked
     */
Toggle the service if the checkboxview is clicked
Toggle the service if the checkboxview is clicked
public void toggleService() {
        if (mServiceSwitch.isChecked()) {
            mServiceRunning = true;
            getActivity().startService(new Intent(getActivity(), SMSCallListener.class));
            updateServiceStatus();
        } else {
            mServiceRunning = false;
            getActivity().stopService(new Intent(getActivity(), SMSCallListener.class));
            updateServiceStatus();
        }
    }
public void toggleService ( ) { if ( mServiceSwitch . isChecked ( ) ) { mServiceRunning = true ; getActivity ( ) . startService ( new Intent ( getActivity ( ) , SMSCallListener . class ) ) ; updateServiceStatus ( ) ; } else { mServiceRunning = false ; getActivity ( ) . stopService ( new Intent ( getActivity ( ) , SMSCallListener . class ) ) ; updateServiceStatus ( ) ; } }
Toggle the service if the checkboxview is clicked
Toggle the service if the checkboxview is clicked