Migrate ambiguous getId method into getLink

The method name getId in setup library LinkSpane would be changed to the name getLink, so migrate the app that is used to getId to getLink.

Bug: 256095678
Change-Id: I2f9d58d82d99775575249e9e245949a0bc1d553e
Test: manual
This commit is contained in:
Pasty Chang
2022-11-16 06:36:14 +00:00
parent 125a6fcec9
commit 1d4e011f41

View File

@@ -331,7 +331,7 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
@Override @Override
public void onClick(LinkSpan span) { public void onClick(LinkSpan span) {
if ("url".equals(span.getId())) { if ("url".equals(span.getLink())) {
String url = getString(R.string.help_url_fingerprint); String url = getString(R.string.help_url_fingerprint);
Intent intent = HelpUtils.getHelpIntent(this, url, getClass().getName()); Intent intent = HelpUtils.getHelpIntent(this, url, getClass().getName());
if (intent == null) { if (intent == null) {