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