|
@ -58,6 +58,7 @@ import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
import awais.instagrabber.BuildConfig; |
|
|
import awais.instagrabber.R; |
|
|
import awais.instagrabber.R; |
|
|
import awais.instagrabber.adapters.SuggestionsAdapter; |
|
|
import awais.instagrabber.adapters.SuggestionsAdapter; |
|
|
import awais.instagrabber.asyncs.PostFetcher; |
|
|
import awais.instagrabber.asyncs.PostFetcher; |
|
@ -163,8 +164,10 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage |
|
|
setupBottomNavigationBar(true); |
|
|
setupBottomNavigationBar(true); |
|
|
} |
|
|
} |
|
|
setupSuggestions(); |
|
|
setupSuggestions(); |
|
|
final boolean checkUpdates = settingsHelper.getBoolean(Constants.CHECK_UPDATES); |
|
|
|
|
|
if (checkUpdates) FlavorTown.updateCheck(this); |
|
|
|
|
|
|
|
|
if (!BuildConfig.isPre) { |
|
|
|
|
|
final boolean checkUpdates = settingsHelper.getBoolean(Constants.CHECK_UPDATES); |
|
|
|
|
|
if (checkUpdates) FlavorTown.updateCheck(this); |
|
|
|
|
|
} |
|
|
FlavorTown.changelogCheck(this); |
|
|
FlavorTown.changelogCheck(this); |
|
|
new ViewModelProvider(this).get(AppStateViewModel.class); // Just initiate the App state here |
|
|
new ViewModelProvider(this).get(AppStateViewModel.class); // Just initiate the App state here |
|
|
final Intent intent = getIntent(); |
|
|
final Intent intent = getIntent(); |
|
|