mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-12 04:49:50 +08:00
android: fixed state locked in processing after saving
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user