Skip to content

Commit 4cb0413

Browse files
authored
Fix conditional checks in completeHandleUpload method
1 parent 33a8278 commit 4cb0413

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Java/MDIntegrationApp/app/src/main/java/com/sample/mdintegrationapp/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ else if (response.getResponseCode() >= 200 && response.getResponseCode() <= 299)
327327
private void completeHandleUpload(boolean success) {
328328
runOnUiThread(() -> {
329329
String action = getIntent().getAction();
330-
if (success && action.equals(DIMENSIONING_RESULT_INTENT_ACTION_GET_DIMENSION))
330+
//if (success && action.equals(DIMENSIONING_RESULT_INTENT_ACTION_GET_DIMENSION))
331331
//Return to calling app if launched with startActivityForResult
332332
finish();
333-
else if (success && !action.equals(Intent.ACTION_MAIN))
333+
if (success && !action.equals(Intent.ACTION_MAIN))
334334
// Return to calling app if launched by web browser Intent
335335
moveTaskToBack(true);
336336
else if (success && mIsDimensionServiceEnabled &&

0 commit comments

Comments
 (0)