#NEWLINE# def clear_layout( self ) : #NEWLINE# #INDENT# rv = self . recycleview #NEWLINE# if rv : #NEWLINE# #INDENT# adapter = rv . view_adapter #NEWLINE# if adapter : #NEWLINE# #INDENT# adapter . invalidate ( )