Skip to content

Commit 1f6924f

Browse files
author
Paul Ruiz
committed
cleanup
1 parent 8ffe5c5 commit 1f6924f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AppCompatToolbar/app/src/main/java/com/ptrprograms/appcompattoolbar/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ private void showCustomView() {
4040
if( mCustomView == null )
4141
mCustomView = (AnalogClock) LayoutInflater.from( this ).inflate( R.layout.ab_clock, null );
4242

43+
mToolbar.removeView( mCustomView );
4344
mToolbar.addView( mCustomView );
4445
setSupportActionBar( mToolbar);
4546
}

0 commit comments

Comments
 (0)