android: fixed state locked in processing after saving

This commit is contained in:
matlabbe
2020-04-26 09:40:50 -04:00
parent 66fca15cc6
commit 3abdd22031
@@ -3188,13 +3188,20 @@ public class RTABMapActivity extends FragmentActivity implements OnClickListener
final File f = new File(newDatabasePath); final File f = new File(newDatabasePath);
final int fileSizeMB = (int)f.length()/(1024 * 1024); final int fileSizeMB = (int)f.length()/(1024 * 1024);
if(!mItemDataRecorderMode.isChecked())
{
mOpenedDatabasePath = newDatabasePath;
}
mProgressDialog.dismiss();
updateState(previousState);
AlertDialog d2 = new AlertDialog.Builder(getActivity()) AlertDialog d2 = new AlertDialog.Builder(getActivity())
.setCancelable(false) .setCancelable(false)
.setTitle("Database saved!") .setTitle("Database saved!")
.setMessage(String.format("Database \"%s\" (%d MB) successfully saved on the SD-CARD!", newDatabasePathHuman, fileSizeMB)) .setMessage(String.format("Database \"%s\" (%d MB) successfully saved on the SD-CARD!", newDatabasePathHuman, fileSizeMB))
.setPositiveButton("OK", new DialogInterface.OnClickListener() { .setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
// do nothing resetNoTouchTimer(true);
} }
}) })
.create(); .create();