Skip to content

Commit

Permalink
[Student][RC 6.7] Quick fix for bug in qr login (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorNeedham authored Mar 24, 2020
1 parent 1a6d3d9 commit bf4b914
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.instructure.canvasapi2.models.AccountDomain
import com.instructure.canvasapi2.utils.*
import com.instructure.canvasapi2.utils.weave.StatusCallbackError
import com.instructure.canvasapi2.utils.weave.catch
import com.instructure.canvasapi2.utils.weave.tryWeave
import com.instructure.canvasapi2.utils.weave.weave
import com.instructure.loginapi.login.tasks.LogoutTask
import com.instructure.loginapi.login.util.QRLogin.performSSOLogin
import com.instructure.loginapi.login.util.QRLogin.verifySSOLoginUri
Expand Down Expand Up @@ -112,7 +110,7 @@ class InterwebsToApplication : AppCompatActivity() {
Intent(this@InterwebsToApplication, NavigationActivity.startActivityClass)
}

intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent)
finish()
return@tryWeave
Expand Down

0 comments on commit bf4b914

Please sign in to comment.