Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix : network connectivity now checked before the tag is saved
  • Loading branch information
Carl Duncan committed Jun 17, 2022
commit 6972fd5f7e144aa7773cdc317831ddd3d6bbe7e7
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ public void onBackPressed() {
if (getFragmentManager().getBackStackEntryCount() > 0) {
SiteSettingsTagDetailFragment fragment = getDetailFragment();
if (fragment != null && fragment.hasChanges()) {
if (!NetworkUtils.checkConnection(getBaseContext())) {
hideDetailFragment();
return;
}
saveTag(fragment.getTerm(), fragment.isNewTerm());
} else {
hideDetailFragment();
Expand Down