Update gradle, Update URIHandlerActivity
This commit is contained in:
parent
4935ad74d6
commit
2bee44b735
@ -7,6 +7,7 @@
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="jbr-17" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
|
@ -1,6 +1,6 @@
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
@ -33,6 +33,11 @@ public class URIHandlerActivity extends AppCompatActivity {
|
||||
|
||||
try {
|
||||
Uri uri = intent.getData();
|
||||
if(uri == null || uri.getScheme() == null) {
|
||||
finishAndRemoveTask();
|
||||
return;
|
||||
}
|
||||
|
||||
switch(uri.getScheme().toLowerCase()) {
|
||||
case "otpauth":
|
||||
importCodes(OTPParser.parse(uri));
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
plugins {
|
||||
id 'com.android.application' version '8.0.2' apply false
|
||||
id 'com.android.library' version '8.0.2' apply false
|
||||
id 'com.android.application' version '8.1.0' apply false
|
||||
id 'com.android.library' version '8.1.0' apply false
|
||||
id 'com.google.protobuf' version '0.9.3' apply false
|
||||
}
|
Loading…
Reference in New Issue
Block a user