FlashNotifier/src/main/java/com/pandanomic/flashnotifier/FragmentMainTab.java
public void updateServiceStatus() {
        if (mServiceRunning) {
            mServiceSwitch.setChecked(true);
            mServiceSwitch.setText("Service is running!");
        } else {
            mServiceSwitch.setChecked(false);
            mServiceSwitch.setText("Service isn't running");
        }
    }
/**
     * Updates the contents of the switch view
     */
Updates the contents of the switch view
Updates the contents of the switch view
public void updateServiceStatus() {
        if (mServiceRunning) {
            mServiceSwitch.setChecked(true);
            mServiceSwitch.setText("Service is running!");
        } else {
            mServiceSwitch.setChecked(false);
            mServiceSwitch.setText("Service isn't running");
        }
    }
public void updateServiceStatus ( ) { if ( mServiceRunning ) { mServiceSwitch . setChecked ( true ) ; mServiceSwitch . setText ( "Service is running!" ) ; } else { mServiceSwitch . setChecked ( false ) ; mServiceSwitch . setText ( "Service isn't running" ) ; } }
Updates the contents of the switch view
Updates the contents of the switch view