Automatically paste the app id to the website form + finish activity when dismissing the dialog (Analysis from stores).

This commit is contained in:
Thomas 2020-12-16 08:19:33 +01:00
parent e64e04398a
commit ae020fe1cc
2 changed files with 4 additions and 3 deletions

View File

@ -114,9 +114,9 @@ public class CheckAppActivity extends AppCompatActivity implements NetworkListen
ClipData clip = ClipData.newPlainText(getString(R.string.app_name), app_id);
clipboard.setPrimaryClip(clip);
if (BuildConfig.FLAVOR.equals("exodus")) {
uri = Uri.parse("https://reports.exodus-privacy.eu.org/analysis/submit/");
uri = Uri.parse("https://reports.exodus-privacy.eu.org/analysis/submit/#" + app_id);
} else {
uri = Uri.parse("https://exodus.phm.education.gouv.fr/analysis/submit/");
uri = Uri.parse("https://exodus.phm.education.gouv.fr/analysis/submit/#" + app_id);
}
Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(browserIntent);
@ -127,6 +127,7 @@ public class CheckAppActivity extends AppCompatActivity implements NetworkListen
dialog.dismiss();
finish();
});
dialogBuilder.setOnDismissListener(dialogInterface -> finish());
AlertDialog alertDialog = dialogBuilder.create();
alertDialog.show();
return;

View File

@ -60,7 +60,7 @@
<string name="having_most_permissions">Having most permissions</string>
<string name="having_less_permissions">Having less permissions</string>
<string name="submit">Submit</string>
<string name="app_not_analyzed">Would you like to analyze the app?\n\nThe app id will be automatically copied in your clipboard, you will only have to past it in website form.</string>
<string name="app_not_analyzed">Would you like to analyze the app?\n\nThe app id will be automatically pasted to the website form. You will only need to submit the form.</string>
<string name="app_not_analyzed_title">This app has not been analyzed!</string>