Skip to content

Commit

Permalink
#293 fix license screen bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Apr 13, 2021
1 parent a7f3893 commit c3039f7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Handler
import android.widget.Toast
import androidx.biometric.BiometricManager
import org.cryptomator.data.cloud.crypto.CryptoCloud
import org.cryptomator.data.util.NetworkConnectionCheck
Expand Down Expand Up @@ -154,7 +155,13 @@ class VaultListPresenter @Inject constructor( //
val intent = Intent(context(), LicenseCheckActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
intent.data = Uri.parse(String.format("app://cryptomator/%s", license))
context().startActivity(intent)

try {
context().startActivity(intent)
} catch (e: ActivityNotFoundException) {
Toast.makeText(context(), "Please contact the support.", Toast.LENGTH_LONG).show()
finish()
}
}
})
}
Expand Down

0 comments on commit c3039f7

Please sign in to comment.