@ -390,7 +390,7 @@ public class LocalWidgetRepoPane extends BasicPane {
List < SharableWidgetProvider > updatableWidgetProviders = LocalWidgetRepoUpdater . getInstance ( ) . getUpdatableWidgetProviders ( ) ;
List < SharableWidgetProvider > updatableWidgetProviders = LocalWidgetRepoUpdater . getInstance ( ) . getUpdatableWidgetProviders ( ) ;
updateTipPane . setVisible ( updatableWidgetProviders . size ( ) > 0 ) ;
updateTipPane . setVisible ( updatableWidgetProviders . size ( ) > 0 ) ;
if ( updatableWidgetProviders . size ( ) > 0 ) {
if ( updatableWidgetProviders . size ( ) > 0 ) {
refreshAllGroupPane ( GroupPane . GroupCreateStrategy . EXPANDED ) ;
refreshAllGroupPane ( GroupPane . GroupCreateStrategy . DEFAULT ) ;
}
}
}
}
}
}
@ -413,7 +413,7 @@ public class LocalWidgetRepoPane extends BasicPane {
toolbarPane . reset ( ) ;
toolbarPane . reset ( ) ;
managePane . switchPanel ( false ) ;
managePane . switchPanel ( false ) ;
switchPane ( LocalPaneStatus . NORMAL ) ;
switchPane ( LocalPaneStatus . NORMAL ) ;
refreshAllGroupPane ( GroupPane . GroupCreateStrategy . EXPANDED ) ;
refreshAllGroupPane ( GroupPane . GroupCreateStrategy . DEFAULT ) ;
List < LocalWidgetBlock > blockList = getUpdatableBlocks ( ) ;
List < LocalWidgetBlock > blockList = getUpdatableBlocks ( ) ;
if ( blockList . size ( ) = = 0 ) {
if ( blockList . size ( ) = = 0 ) {
@ -428,7 +428,7 @@ public class LocalWidgetRepoPane extends BasicPane {
LocalWidgetRepoUpdater updater = LocalWidgetRepoUpdater . getInstance ( ) ;
LocalWidgetRepoUpdater updater = LocalWidgetRepoUpdater . getInstance ( ) ;
for ( LocalWidgetBlock block : blockList ) {
for ( LocalWidgetBlock block : blockList ) {
OnlineShareWidget remoteLatestWidget = updater . checkUpdate ( block . getWidget ( ) ) ;
OnlineShareWidget remoteLatestWidget = updater . findLatestRemoteWidget ( block . getWidget ( ) ) ;
block . getUpdater ( ) . updateWidget ( remoteLatestWidget . getId ( ) , new LocalWidgetUpdater . UpdateListener ( ) {
block . getUpdater ( ) . updateWidget ( remoteLatestWidget . getId ( ) , new LocalWidgetUpdater . UpdateListener ( ) {
@Override
@Override
public void onUpdated ( boolean success , String group , String id ) {
public void onUpdated ( boolean success , String group , String id ) {
@ -505,7 +505,7 @@ public class LocalWidgetRepoPane extends BasicPane {
LocalWidgetBlock widgetBlock = ( LocalWidgetBlock ) component ;
LocalWidgetBlock widgetBlock = ( LocalWidgetBlock ) component ;
SharableWidgetProvider localProvider = widgetBlock . getWidget ( ) ;
SharableWidgetProvider localProvider = widgetBlock . getWidget ( ) ;
OnlineShareWidget remoteLatestWidget = updater . checkUpdate ( localProvider ) ;
OnlineShareWidget remoteLatestWidget = updater . findLatestRemoteWidget ( localProvider ) ;
if ( remoteLatestWidget ! = null ) {
if ( remoteLatestWidget ! = null ) {
blockList . add ( widgetBlock ) ;
blockList . add ( widgetBlock ) ;
}
}