added some null checks
This commit is contained in:
@@ -31,6 +31,7 @@ import ru.vtosters.lite.themes.ThemesCore;
|
||||
import ru.vtosters.lite.themes.ThemesHacks;
|
||||
import ru.vtosters.lite.themes.ThemesManager;
|
||||
import ru.vtosters.lite.ui.wallpapers.WallpapersHooks;
|
||||
import ru.vtosters.lite.utils.AndroidUtils;
|
||||
import ru.vtosters.lite.utils.LifecycleUtils;
|
||||
import ru.vtosters.lite.utils.WebViewColoringUtils;
|
||||
|
||||
@@ -341,7 +342,7 @@ public class ThemesUtils {
|
||||
}
|
||||
|
||||
public static int getColor(int i) {
|
||||
return ThemesHacks.getHackedColor(LifecycleUtils.getCurrentActivity(), i);
|
||||
return ThemesHacks.getHackedColor(getGlobalContext(), i);
|
||||
} // Android Support color injector + accent color checker
|
||||
|
||||
public static int getAlertStyle() {
|
||||
|
||||
@@ -96,14 +96,15 @@ public class VTVerifications {
|
||||
}
|
||||
|
||||
private static void processIds(JSONArray jsonIds, List<Integer> member) {
|
||||
if (jsonIds == null || jsonIds.length() == 0)
|
||||
if (jsonIds == null || jsonIds.length() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < jsonIds.length(); i++) {
|
||||
try {
|
||||
member.add(jsonIds.getInt(i));
|
||||
} catch (JSONException e) {
|
||||
e.fillInStackTrace();
|
||||
int id = jsonIds.optInt(i);
|
||||
|
||||
if (id != 0) {
|
||||
member.add(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -384,11 +384,21 @@
|
||||
.line 3
|
||||
iget-object v3, p0, Lcom/vtosters/lite/ui/widget/MenuListView$s;->e:Landroid/widget/TextView;
|
||||
|
||||
if-nez v3, :cond_10
|
||||
|
||||
return-void
|
||||
|
||||
:cond_10
|
||||
invoke-virtual {v3, v0}, Landroid/widget/TextView;->setAlpha(F)V
|
||||
|
||||
.line 4
|
||||
iget-object v0, p0, Lcom/vtosters/lite/ui/widget/MenuListView$s;->c:Landroid/widget/TextView;
|
||||
|
||||
if-nez v0, :cond_11
|
||||
|
||||
return-void
|
||||
|
||||
:cond_11
|
||||
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setAlpha(F)V
|
||||
|
||||
.line 5
|
||||
|
||||
@@ -171,6 +171,8 @@
|
||||
|
||||
.line 12
|
||||
:catch_0
|
||||
return-void
|
||||
|
||||
new-instance p1, Lru/mail/voip2/Voip2$VoipException;
|
||||
|
||||
const-string p2, "Native library not loaded!"
|
||||
|
||||
Reference in New Issue
Block a user