|
|
|
@ -57,12 +57,21 @@ public class FragmentDialogPwned extends FragmentDialogBase {
|
|
|
|
|
final Button btnCheck = dview.findViewById(R.id.btnCheck);
|
|
|
|
|
final ContentLoadingProgressBar pbCheck = dview.findViewById(R.id.pbCheck);
|
|
|
|
|
final ImageButton ibPwned = dview.findViewById(R.id.ibPwned);
|
|
|
|
|
final TextView tvRemark = dview.findViewById(R.id.tvRemark);
|
|
|
|
|
final TextView tvPrivacy = dview.findViewById(R.id.tvPrivacy);
|
|
|
|
|
final Group grpReady = dview.findViewById(R.id.grpReady);
|
|
|
|
|
|
|
|
|
|
final int colorError = Helper.resolveColor(context, androidx.appcompat.R.attr.colorError);
|
|
|
|
|
final int colorVerified = Helper.resolveColor(context, R.attr.colorVerified);
|
|
|
|
|
|
|
|
|
|
tvCaption.getPaint().setUnderlineText(true);
|
|
|
|
|
tvCaption.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
Helper.view(v.getContext(), Uri.parse(BuildConfig.PWNED_URI + "Passwords"), true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
btnCheck.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
@ -140,18 +149,14 @@ public class FragmentDialogPwned extends FragmentDialogBase {
|
|
|
|
|
ibPwned.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
Helper.view(v.getContext(), Uri.parse(BuildConfig.PWNED_URI), true);
|
|
|
|
|
Helper.view(v.getContext(), Uri.parse(BuildConfig.PWNED_URI + "Passwords"), true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
pbCheck.setVisibility(View.GONE);
|
|
|
|
|
grpReady.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
tvCaption.getPaint().setUnderlineText(true);
|
|
|
|
|
tvCaption.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
tvRemark.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
Helper.view(v.getContext(), Uri.parse(BuildConfig.PWNED_URI), true);
|
|
|
|
|
Helper.view(v.getContext(), Uri.parse("https://en.wikipedia.org/wiki/K-anonymity"), true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -163,6 +168,9 @@ public class FragmentDialogPwned extends FragmentDialogBase {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
pbCheck.setVisibility(View.GONE);
|
|
|
|
|
grpReady.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
return new AlertDialog.Builder(context)
|
|
|
|
|
.setView(dview)
|
|
|
|
|
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
|
|
|
|