mirror of https://github.com/M66B/FairEmail.git
Hide pro texts when applicable
This commit is contained in:
parent
27b89de1f5
commit
96be1c9bf6
|
@ -806,16 +806,20 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void linkPro(final TextView tv) {
|
static void linkPro(final TextView tv) {
|
||||||
final Intent pro = new Intent(Intent.ACTION_VIEW, Uri.parse(BuildConfig.PRO_FEATURES_URI));
|
if (isPro(tv.getContext()))
|
||||||
PackageManager pm = tv.getContext().getPackageManager();
|
hide(tv);
|
||||||
if (pro.resolveActivity(pm) != null) {
|
else {
|
||||||
tv.getPaint().setUnderlineText(true);
|
final Intent pro = new Intent(Intent.ACTION_VIEW, Uri.parse(BuildConfig.PRO_FEATURES_URI));
|
||||||
tv.setOnClickListener(new View.OnClickListener() {
|
PackageManager pm = tv.getContext().getPackageManager();
|
||||||
@Override
|
if (pro.resolveActivity(pm) != null) {
|
||||||
public void onClick(View view) {
|
tv.getPaint().setUnderlineText(true);
|
||||||
tv.getContext().startActivity(pro);
|
tv.setOnClickListener(new View.OnClickListener() {
|
||||||
}
|
@Override
|
||||||
});
|
public void onClick(View view) {
|
||||||
|
tv.getContext().startActivity(pro);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue