Hide pro texts when applicable

pull/158/head
M66B 5 years ago
parent 27b89de1f5
commit 96be1c9bf6

@ -806,6 +806,9 @@ public class Helper {
}
static void linkPro(final TextView tv) {
if (isPro(tv.getContext()))
hide(tv);
else {
final Intent pro = new Intent(Intent.ACTION_VIEW, Uri.parse(BuildConfig.PRO_FEATURES_URI));
PackageManager pm = tv.getContext().getPackageManager();
if (pro.resolveActivity(pm) != null) {
@ -818,6 +821,7 @@ public class Helper {
});
}
}
}
static <T> List<List<T>> chunkList(List<T> list, int size) {
List<List<T>> result = new ArrayList<>(list.size() / size);

Loading…
Cancel
Save