Small improvements

pull/195/merge
M66B 4 years ago
parent 60cadffc84
commit 96641c22fb

@ -76,7 +76,7 @@ public class FragmentAbout extends FragmentBase {
tvGplV3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.LICENSE_URI), true);
Helper.view(view.getContext(), Uri.parse(Helper.LICENSE_URI), true);
}
});

@ -463,7 +463,7 @@ public class FragmentAccount extends FragmentBase {
btnSupport.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.SUPPORT_URI), false);
Helper.view(view.getContext(), Uri.parse(Helper.SUPPORT_URI), false);
}
});

@ -46,7 +46,7 @@ public class FragmentEula extends FragmentBase {
tvGplV3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.LICENSE_URI), true);
Helper.view(view.getContext(), Uri.parse(Helper.LICENSE_URI), true);
}
});

@ -159,7 +159,7 @@ public class FragmentGmail extends FragmentBase {
btnSupport.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.SUPPORT_URI), false);
Helper.view(view.getContext(), Uri.parse(Helper.SUPPORT_URI), false);
}
});

@ -478,7 +478,7 @@ public class FragmentIdentity extends FragmentBase {
btnSupport.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.SUPPORT_URI), false);
Helper.view(view.getContext(), Uri.parse(Helper.SUPPORT_URI), false);
}
});

@ -155,7 +155,7 @@ public class FragmentOAuth extends FragmentBase {
btnSupport.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.SUPPORT_URI), false);
Helper.view(view.getContext(), Uri.parse(Helper.SUPPORT_URI), false);
}
});

@ -452,7 +452,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
tvGravatarsHint.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(getContext(), Uri.parse(Helper.GRAVATAR_PRIVACY_URI), true);
Helper.view(v.getContext(), Uri.parse(Helper.GRAVATAR_PRIVACY_URI), true);
}
});

@ -243,7 +243,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
ibIncognitoKeyboard.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(getContext(), Uri.parse("https://developer.android.com/reference/android/view/inputmethod/EditorInfo#IME_FLAG_NO_PERSONALIZED_LEARNING"), true);
Helper.view(v.getContext(), Uri.parse("https://developer.android.com/reference/android/view/inputmethod/EditorInfo#IME_FLAG_NO_PERSONALIZED_LEARNING"), true);
}
});
@ -264,7 +264,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
ibSafeBrowsing.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(getContext(), Uri.parse("https://developers.google.com/safe-browsing"), true);
Helper.view(v.getContext(), Uri.parse("https://developers.google.com/safe-browsing"), true);
}
});

@ -112,7 +112,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
tvList.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(BuildConfig.PRO_FEATURES_URI), false);
Helper.view(view.getContext(), Uri.parse(BuildConfig.PRO_FEATURES_URI), false);
}
});

@ -178,7 +178,7 @@ public class FragmentQuickSetup extends FragmentBase {
btnSupport.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.view(getContext(), Uri.parse(Helper.SUPPORT_URI), false);
Helper.view(view.getContext(), Uri.parse(Helper.SUPPORT_URI), false);
}
});

@ -274,7 +274,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
if ("cid".equals(uri.getScheme()) || "data".equals(uri.getScheme()))
return false;
Helper.view(getContext(), uri, true);
Helper.view(view.getContext(), uri, true);
return true;
}

Loading…
Cancel
Save