wearable/src/main/java/com/example/android/sunshine/app/WeatherService.java
@Override
        public void onInterruptionFilterChanged(int interruptionFilter)
        {

            super.onInterruptionFilterChanged(interruptionFilter);

            boolean isDeviceMuted = ( interruptionFilter == android.support.wearable.watchface.WatchFaceService.INTERRUPTION_FILTER_NONE );
            if( isDeviceMuted ) {
                mUpdateRateMs = TimeUnit.MINUTES.toMillis( 1 );
            }
            else
            {
                mUpdateRateMs = DEFAULT_UPDATE_RATE_MS;
            }

            if( mIsInMuteMode != isDeviceMuted ) {
                mIsInMuteMode = isDeviceMuted;
                int alpha = ( isDeviceMuted ) ? 100 : 255;
                mTextColorPaint.setAlpha( alpha );
                invalidate();
                updateTimer();
            }
        }
//update timer every minute rather than every second
update timer every minute rather than every second
update timer every minute rather than every second
@Override
        public void onInterruptionFilterChanged(int interruptionFilter)
        {
            super.onInterruptionFilterChanged(interruptionFilter);
            boolean isDeviceMuted = ( interruptionFilter == android.support.wearable.watchface.WatchFaceService.INTERRUPTION_FILTER_NONE );
            if( isDeviceMuted ) {
                mUpdateRateMs = TimeUnit.MINUTES.toMillis( 1 );
            }
            else
            {
                mUpdateRateMs = DEFAULT_UPDATE_RATE_MS;
            }
            if( mIsInMuteMode != isDeviceMuted ) {
                mIsInMuteMode = isDeviceMuted;
                int alpha = ( isDeviceMuted ) ? 100 : 255;
                mTextColorPaint.setAlpha( alpha );
                invalidate();
                updateTimer();
            }
        }
@ Override public void onInterruptionFilterChanged ( int interruptionFilter ) { super . onInterruptionFilterChanged ( interruptionFilter ) ; boolean isDeviceMuted = ( interruptionFilter == android . support . wearable . watchface . WatchFaceService . INTERRUPTION_FILTER_NONE ) ; if ( isDeviceMuted ) { mUpdateRateMs = TimeUnit . MINUTES . toMillis ( 1 ) ; } else { mUpdateRateMs = DEFAULT_UPDATE_RATE_MS ; } if ( mIsInMuteMode != isDeviceMuted ) { mIsInMuteMode = isDeviceMuted ; int alpha = ( isDeviceMuted ) ? 100 : 255 ; mTextColorPaint . setAlpha ( alpha ) ; invalidate ( ) ; updateTimer ( ) ; } }
update timer every minute rather than every second
update timer every minute rather than every second