fixed imports and Themes.java

This commit is contained in:
gdlbo
2022-06-21 23:05:33 +03:00
parent f6c30a4953
commit 682ed1c8c5
5 changed files with 20 additions and 17 deletions
@@ -38,6 +38,7 @@ import com.vk.core.ui.themes.VKThemeHelper;
import com.vtosters.lite.R;
import com.vtosters.lite.data.ThemeTracker;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.List;
@@ -61,7 +62,11 @@ public class Themes {
}
public static void setSelectedTheme(Activity paramActivity, VKTheme theme) {
invokeThemeChanging(paramActivity, theme);
try {
invokeMethod(VKThemeHelper.class, "a", VKThemeHelper.k, paramActivity, theme, getCenterScreenCoords());
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
e.printStackTrace();
}
}
public static int getAccentColor() {