mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-04 19:41:36 +00:00
Skip update check for pre-release builds
This commit is contained in:
parent
1089a39375
commit
86b04e69ee
3 changed files with 9 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import awais.instagrabber.BuildConfig;
|
||||
import awais.instagrabber.R;
|
||||
import awais.instagrabber.adapters.SuggestionsAdapter;
|
||||
import awais.instagrabber.asyncs.PostFetcher;
|
||||
|
|
@ -163,8 +164,10 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
|
|||
setupBottomNavigationBar(true);
|
||||
}
|
||||
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);
|
||||
new ViewModelProvider(this).get(AppStateViewModel.class); // Just initiate the App state here
|
||||
final Intent intent = getIntent();
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ public class MorePreferencesFragment extends BasePreferencesFragment {
|
|||
BuildConfig.VERSION_NAME + " (" + BuildConfig.VERSION_CODE + ")",
|
||||
-1,
|
||||
preference -> {
|
||||
if (BuildConfig.isPre) return true;
|
||||
final AppCompatActivity activity = (AppCompatActivity) getActivity();
|
||||
if (activity == null) return true;
|
||||
FlavorTown.updateCheck(activity, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue