wearable/src/main/java/com/example/android/sunshine/app/WeatherService.java
@Override
        public void onAmbientModeChanged(boolean inAmbientMode) {

            super.onAmbientModeChanged(inAmbientMode);

            if( inAmbientMode )
            {

                mTextColorPaint.setColor( Color.parseColor( "white" ) );
                mDatePaint.setColor( Color.parseColor( "white" ) );
            }
            else
            {

                mTextColorPaint.setColor( Color.parseColor( "red" ) );
                mDatePaint.setColor( Color.parseColor( "red" ) );

            }
            if( mIsLowBitAmbient )
            {

                mTextColorPaint.setAntiAlias( !inAmbientMode );

            }
            invalidate();
            updateTimer();

        }
//differs background colour in ambient and interactive
differs background colour in ambient and interactive
differs background colour in ambient and interactive
@Override
        public void onAmbientModeChanged(boolean inAmbientMode) {
            super.onAmbientModeChanged(inAmbientMode);
            if( inAmbientMode )
            {
                mTextColorPaint.setColor( Color.parseColor( "white" ) );
                mDatePaint.setColor( Color.parseColor( "white" ) );
            }
            else
            {
                mTextColorPaint.setColor( Color.parseColor( "red" ) );
                mDatePaint.setColor( Color.parseColor( "red" ) );
            }
            if( mIsLowBitAmbient )
            {
                mTextColorPaint.setAntiAlias( !inAmbientMode );
            }
            invalidate();
            updateTimer();
        }
@ Override public void onAmbientModeChanged ( boolean inAmbientMode ) { super . onAmbientModeChanged ( inAmbientMode ) ; if ( inAmbientMode ) { mTextColorPaint . setColor ( Color . parseColor ( "white" ) ) ; mDatePaint . setColor ( Color . parseColor ( "white" ) ) ; } else { mTextColorPaint . setColor ( Color . parseColor ( "red" ) ) ; mDatePaint . setColor ( Color . parseColor ( "red" ) ) ; } if ( mIsLowBitAmbient ) { mTextColorPaint . setAntiAlias ( ! inAmbientMode ) ; } invalidate ( ) ; updateTimer ( ) ; }
differs background colour in ambient and interactive
differs background colour in ambient and interactive