@@ -124,7 +124,7 @@ public void commonNext() {
124124 (int ) (value * PRECISION ), true ) :() ->
125125 progressIndicator .setProgressCompat (
126126 (int ) (value * PRECISION * 0.75F ), true )));
127- if (!RepoManager . getINSTANCE (). hasConnectivity ()) {
127+ if (!NotificationType . NO_INTERNET . shouldRemove ()) {
128128 moduleViewListBuilder .addNotification (NotificationType .NO_INTERNET );
129129 } else {
130130 if (AppUpdateManager .getAppUpdateManager ().checkUpdate (true ))
@@ -210,7 +210,7 @@ public void commonNext() {
210210 Log .i (TAG , "Common Before" );
211211 if (MainApplication .isShowcaseMode ())
212212 moduleViewListBuilder .addNotification (NotificationType .SHOWCASE_MODE );
213- if (!RepoManager . getINSTANCE (). hasConnectivity ())
213+ if (!NotificationType . NO_INTERNET . shouldRemove ())
214214 moduleViewListBuilder .addNotification (NotificationType .NO_INTERNET );
215215 else if (AppUpdateManager .getAppUpdateManager ().checkUpdate (false ))
216216 moduleViewListBuilder .addNotification (NotificationType .UPDATE_AVAILABLE );
@@ -241,15 +241,15 @@ public void onRefresh() {
241241 RepoManager .getINSTANCE ().update (value -> runOnUiThread (() ->
242242 this .progressIndicator .setProgressCompat (
243243 (int ) (value * PRECISION ), true )));
244- if (!RepoManager . getINSTANCE (). hasConnectivity ())
244+ if (!NotificationType . NO_INTERNET . shouldRemove ())
245245 moduleViewListBuilder .addNotification (NotificationType .NO_INTERNET );
246246 else if (AppUpdateManager .getAppUpdateManager ().checkUpdate (true ))
247247 moduleViewListBuilder .addNotification (NotificationType .UPDATE_AVAILABLE );
248248 runOnUiThread (() -> {
249249 this .progressIndicator .setVisibility (View .GONE );
250250 this .swipeRefreshLayout .setRefreshing (false );
251251 });
252- if (!RepoManager . getINSTANCE (). hasConnectivity ()) {
252+ if (!NotificationType . NO_INTERNET . shouldRemove ()) {
253253 this .moduleViewListBuilder .addNotification (NotificationType .NO_INTERNET );
254254 }
255255 this .moduleViewListBuilder .appendRemoteModules ();
0 commit comments