Compare commits

...
Author SHA1 Message Date
gdlbo dcdd83243b color fixes 2022-06-15 21:11:30 +03:00
gdlbo bc3e5a706d fixed auto theme 2022-06-15 07:59:10 +03:00
gdlbo 0b56d9dd23 fixes 2022-06-15 02:36:25 +03:00
gdlbo 62ccdf8eba upgraded new settings
refactored multi account counter
2022-06-15 02:13:33 +03:00
gdlbo 72f4226419 fixes 2022-06-14 23:48:07 +03:00
gdlbo f6a45beac5 isdarktheme now should work depending on the dark theme of the app v2 2022-06-14 13:26:47 +03:00
gdlbo a657ddef58 Merge pull request #313 from iNotFlying/master
New VK logo
2022-06-14 13:10:11 +03:00
gdlbo 726e38ff2e isdarktheme now should work depending on the dark theme of the app 2022-06-14 13:08:20 +03:00
iNotFlying 191d3f760e Some fixes 2022-06-14 10:48:25 +03:00
iNotFlying 2cd3b0f39c Merge branch 'vtosters:master' into master 2022-06-14 11:41:47 +04:00
gdlbo abd990eef7 injected new setting to default theme 2022-06-14 01:19:20 +03:00
gdlbo cd875af7d7 fixed dark theme in new settings 2022-06-14 01:07:17 +03:00
gdlbo b1e8f93371 fixed amoled css 2022-06-14 00:15:25 +03:00
gdlbo 64afd0222b amoled theme now is fully amoled theme 2022-06-14 00:11:33 +03:00
gdlbo 32369f1f38 fixes 2022-06-13 23:57:53 +03:00
gdlbo f00be506cc fixes 2022-06-13 22:49:22 +03:00
gdlbo 248fd1ce9c fixes 2022-06-13 22:40:10 +03:00
gdlbo 3e2d4bb665 vkme mode updated 2022-06-13 22:34:35 +03:00
iNotFlying 92689941ca New VK logo 2022-06-13 21:45:29 +03:00
gdlbo c46110cfea vkme mode updated 2022-06-13 21:07:16 +03:00
gdlbo b5250e0b8d vkme mode updated 2022-06-13 21:06:36 +03:00
gdlbo 0e81397305 vkme mode updated 2022-06-13 21:04:16 +03:00
gdlbo 95d306eaed vkme mode updated 2022-06-13 18:18:38 +03:00
gdlbo 339a4fe01f vkme mode updated 2022-06-13 12:38:50 +03:00
gdlbo 48cdbc7681 vkme mode updated 2022-06-13 12:20:21 +03:00
gdlbo 5e85ba10f4 vkme mode updated 2022-06-13 12:01:04 +03:00
gdlbo ea7dd7aba5 vkme mode test 2022-06-13 01:03:10 +03:00
gdlbo c60b766f37 test coloring bottomsheet 2022-06-12 20:02:15 +03:00
gdlbo da9ded2ae1 mini refactoring 2022-06-12 16:19:45 +03:00
gdlbo 29eb517bb9 fix https://github.com/vtosters/lite/issues/156 2022-06-12 15:44:05 +03:00
gdlbo 84a3f6caff fix 2022-06-12 01:49:10 +03:00
gdlbo b34821463a fix hardcoded text 2022-06-12 01:29:19 +03:00
gdlbo 127abbaaeb fix 2022-06-12 01:12:01 +03:00
gdlbo d462d42775 dropdown menu text color fix 2022-06-12 00:36:18 +03:00
gdlbo 5e80ad7e4e dropdown menu coloring!!!!!!! 2022-06-11 23:51:48 +03:00
gdlbo e1aadade5f fixes 2022-06-11 23:08:16 +03:00
gdlbo 77d6f5d977 fixes 2022-06-11 22:57:52 +03:00
gdlbo c4ae2ec0a3 fixes 2022-06-11 22:45:55 +03:00
73 changed files with 890 additions and 117 deletions
@@ -118,6 +118,19 @@ public class PreferencesUtil {
fragment.ay().d(preference); // fragment.getPreferenceScreen().addPreference(preference)
}
public static void addPreferenceDrawable(MaterialPreferenceToolbarFragment fragment, String key, CharSequence title, CharSequence summary, @Nullable Drawable icon, Preference.c listener) {
Preference preference = new Preference(getContext());
preference.b(summary); // setSummary
preference.c(title); // setTitle
preference.d(key); // setKey
if (icon != null)
preference.a(icon); // preference.setIcon
preference.a(listener); // preference.setOnPreferenceClickListener(listener)
fragment.ay().d(preference); // fragment.getPreferenceScreen().addPreference(preference)
}
public static void addPreferenceCategory(MaterialPreferenceToolbarFragment fragment, CharSequence title) {
PreferenceCategory preference = new PreferenceCategory(getContext(), null);
preference.c(title); // setTitle
@@ -1,11 +1,10 @@
package ru.vtosters.lite.ui.fragments;
import static ru.vtosters.lite.utils.Globals.getString;
import static ru.vtosters.lite.utils.Globals.restartApplicationWithTimer;
import android.os.Bundle;
import android.support.v7.preference.Preference;
import com.vk.core.util.ToastUtils;
import com.vtosters.lite.R;
import com.vtosters.lite.fragments.MaterialPreferenceToolbarFragment;
@@ -18,16 +17,20 @@ public class InterfaceFragment extends MaterialPreferenceToolbarFragment {
}
private void prefs() {
a("newfeed").a(new a());
a("newfeed").a(new restart());
a("dateformat").a(new restart());
a("stories").a(new restart());
a("swipe").a(new restart());
a("dockcounter").a(new restart());
}
public boolean restart(Preference preference, Object obj) {
ToastUtils.a(getString("restartapp"));
restartApplicationWithTimer();
return true;
}
public class a implements Preference.b {
a() {
public class restart implements Preference.b {
restart() {
}
@Override // android.support.v7.preference.Preference.b
@@ -1,6 +1,9 @@
package ru.vtosters.lite.ui.fragments;
import static ru.vtosters.lite.utils.Globals.restartApplicationWithTimer;
import android.os.Bundle;
import android.support.v7.preference.Preference;
import com.vtosters.lite.R;
import com.vtosters.lite.fragments.MaterialPreferenceToolbarFragment;
@@ -10,5 +13,25 @@ public class MessagesFragment extends MaterialPreferenceToolbarFragment {
public void b(Bundle bundle) {
super.b(bundle);
a(R.xml.preferences_messages);
prefs();
}
private void prefs() {
a("vkme").a(new MessagesFragment.restart());
}
public boolean restart(Preference preference, Object obj) {
restartApplicationWithTimer();
return true;
}
public class restart implements Preference.b {
restart() {
}
@Override // android.support.v7.preference.Preference.b
public boolean a(Preference preference, Object obj) {
return MessagesFragment.this.restart(preference, obj);
}
}
}
@@ -2,6 +2,7 @@ package ru.vtosters.lite.ui.fragments;
import static ru.vtosters.lite.utils.Globals.componentSwitcher;
import static ru.vtosters.lite.utils.Globals.getString;
import static ru.vtosters.lite.utils.Globals.restartApplicationWithTimer;
import android.os.Bundle;
import android.support.v7.preference.Preference;
@@ -34,14 +35,15 @@ public class ThemesFragment extends MaterialPreferenceToolbarFragment {
private void prefs() {
a("iconvk").a(new a());
a("darktheme").a(new b());
a("lighttheme").a(new b());
a("darktheme").a(new restart());
a("lighttheme").a(new restart());
a("navbar").a(new restart());
}
public static class b implements Preference.b {
public static class restart implements Preference.b {
@Override // android.support.v7.preference.Preference.b
public boolean a(Preference preference, Object obj) {
ToastUtils.a(getString("restartapp"));
restartApplicationWithTimer();
return true;
}
}
@@ -0,0 +1,385 @@
package ru.vtosters.lite.ui.fragments;
import static bruhcollective.itaysonlab.libvkx.client.LibVKXClient.isIntegrationEnabled;
import static ru.vtosters.lite.f0x1d.VTVerifications.vtverif;
import static ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountManager.getAccountPrefsCount;
import static ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountManager.getCurrentAccount;
import static ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountManager.withRegex;
import static ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountManager.workingAccounts;
import static ru.vtosters.lite.utils.About.getBuildNumber;
import static ru.vtosters.lite.utils.About.getCommitLink;
import static ru.vtosters.lite.utils.Globals.drawableFromUrl;
import static ru.vtosters.lite.utils.Globals.edit;
import static ru.vtosters.lite.utils.Globals.getContext;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
import static ru.vtosters.lite.utils.Globals.getString;
import static ru.vtosters.lite.utils.Globals.getUserId;
import static ru.vtosters.lite.utils.Globals.isGmsInstalled;
import static ru.vtosters.lite.utils.Globals.restartApplicationWithTimer;
import static ru.vtosters.lite.utils.Preferences.ads;
import static ru.vtosters.lite.utils.Preferences.devmenu;
import static ru.vtosters.lite.utils.Preferences.disableSettingsSumms;
import static ru.vtosters.lite.utils.Preferences.hasSpecialVerif;
import static ru.vtosters.lite.utils.Preferences.navbar;
import static ru.vtosters.lite.utils.Preferences.offline;
import static ru.vtosters.lite.utils.Preferences.shortinfo;
import static ru.vtosters.lite.utils.Preferences.vkme;
import static ru.vtosters.lite.utils.Themes.applyTheme;
import static ru.vtosters.lite.utils.Themes.getDarkTheme;
import static ru.vtosters.lite.utils.Themes.getImDarkTheme;
import static ru.vtosters.lite.utils.Themes.getImLightTheme;
import static ru.vtosters.lite.utils.Themes.getLightTheme;
import static ru.vtosters.lite.utils.Themes.setTheme;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import com.aefyr.tsg.g2.TelegramStickersService;
import com.vk.about.AboutAppFragment;
import com.vk.identity.fragments.IdentityListFragment;
import com.vk.navigation.Navigator;
import com.vk.notifications.settings.NotificationsSettingsFragment;
import com.vk.webapp.Bugs;
import com.vk.webapp.PrivacyFragment;
import com.vk.webapp.SSFS;
import com.vk.webapp.VKConnect;
import com.vtosters.lite.auth.VKAccountManager;
import com.vtosters.lite.fragments.MaterialPreferenceToolbarFragment;
import com.vtosters.lite.fragments.SettingsAccountFragment;
import com.vtosters.lite.fragments.SettingsDebugFragment;
import com.vtosters.lite.fragments.SettingsGeneralFragment;
import com.vtosters.lite.fragments.k.BlacklistFragment;
import com.vtosters.lite.fragments.money.music.control.subscription.MusicSubscriptionControlFragment;
import ru.vtosters.lite.ui.PreferencesUtil;
import ru.vtosters.lite.ui.fragments.dockbar.DockBarFragment;
import ru.vtosters.lite.ui.fragments.dockbar.DockBarManager;
import ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountFragment;
import ru.vtosters.lite.ui.fragments.tgstickers.StickersFragment;
public class VTSettings extends MaterialPreferenceToolbarFragment {
@Override
public void b(Bundle bundle) {
super.b(bundle);
String keyVKAccount = getCurrentAccount().getString("key_vk_account", "");
String avatarUrl = withRegex(keyVKAccount, ".*\"photo\":\\{.*?:\"(.*?)\"\\}.*", "https://vk.com/images/camera_200.png").replace("\\/", "/");
String name = withRegex(keyVKAccount, ".*\"name\":\\{.*?:\"(.*?)\"\\}.*", "");
String id = "@id" + getUserId();
String feedsumm = getValAsString("vtlfeedsumm", ads());
String docksumm = getDocksumm();
String musicsumm = getValAsString("vtlmusicsumm", isIntegrationEnabled());
String msgsumm = getValAsString("vtlmsgsumm", vkme());
String activitysumm = getValAsString("vtlactivitysumm", !offline());
String themessumm = getValAsString("vtlthemessumm", navbar());
String tgssumm = getTGSsumm();
String interfacesumm = getValAsString("vtlinterfacesumm", shortinfo());
String proxysumm = getValAsString("vtlproxysumm", !getPrefsValue("proxy").equals("noproxy"));
String othersumm = getValAsString("vtlothersumm", vtverif());
String multiaccsumm = getMultiAccsumm();
String ssfs = getSSFSsumm();
String about = "Commit: " + getBuildNumber();
int vtosterXml = getIdentifier("empty", "xml");
this.a(vtosterXml);
if (vkme()) {
PreferencesUtil.addPreferenceDrawable(this, "", name, id, drawableFromUrl(avatarUrl), preference -> {
Context context = getContext();
Intent a2 = new Navigator(MultiAccountFragment.class).a(context);
context.startActivity(a2);
return false;
});
} else {
PreferencesUtil.addPreference(this, "", getString("accounts"), multiaccsumm, "ic_user_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(MultiAccountFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreferenceCategory(this, getString("vtsettdarktheme"));
}
PreferencesUtil.addMaterialSwitchPreference(this, "isdark", getString("vtsettdarktheme"), "", "ic_palette_24", false, (preference, o) -> {
boolean value = (boolean) o;
if(value){
applyTheme(getLightTheme(), getImLightTheme());
} else {
applyTheme(getDarkTheme(), getImDarkTheme());
}
edit().putBoolean("isdark", value).commit();
setTheme(this.p());
restartApplicationWithTimer();
return true;
});
if (Build.VERSION.SDK_INT >= 28) {
PreferencesUtil.addMaterialSwitchPreference(this, "systemtheme", getString("appearance_theme_use_system"), getString("appearance_theme_use_system_summary"), "ic_recent_24", true, (preference, o) -> {
boolean value = (boolean) o;
edit().putBoolean("systemtheme", value).commit();
return true;
});
}
if (!isGmsInstalled()) {
PreferencesUtil.addPreference(this, "", getString("installgms"), "", "ic_alert", preference -> {
Context context = getContext();
Intent a2 = new Navigator(InstallGMSFragment.class).a(context);
context.startActivity(a2);
return false;
});
}
if(devmenu()){
PreferencesUtil.addPreferenceCategory(this, getString("sett_debug"));
PreferencesUtil.addPreference(this, "", getString("sett_debug"), "", "ic_bug_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(SettingsDebugFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addMaterialSwitchPreference(this, "ssl", getString("debug_developer_force_ssl"), getString("debug_developer_force_ssl_summary"), "ic_globe_24", true, (preference, o) -> {
boolean value = (boolean) o;
edit().putBoolean("ssl", value).commit();
return true;
});
}
PreferencesUtil.addPreferenceCategory(this, getString("vtsettaccount"));
PreferencesUtil.addPreference(this, "", getString("vkconnect"), "", "ic_tags_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(VKConnect.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("privacy_settings"), "", "ic_privacy_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(PrivacyFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("sett_account"), "", "ic_user_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(SettingsAccountFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("bugs"), "", "ic_bug_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(Bugs.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtssfs"), ssfs, "ic_link_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(SSFS.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreferenceCategory(this, getString("notification_settings"));
PreferencesUtil.addPreference(this, "", getString("sett_general"), "", "ic_settings_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(SettingsGeneralFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("blacklist"), "", "ic_users_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(BlacklistFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("sett_notifications"), "", "ic_notification_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(NotificationsSettingsFragment.class).a(context);
context.startActivity(a2);
return false;
});
if (VKAccountManager.b().isRealMusicSubs()) {
PreferencesUtil.addPreference(this, "", getString("subscription_music"), "", "ic_music_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(MusicSubscriptionControlFragment.class).a(context);
context.startActivity(a2);
return false;
});
}
if (VKAccountManager.b().ar()) {
PreferencesUtil.addPreference(this, "", getString("identity_title"), "", "ic_services_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(IdentityListFragment.class).a(context);
context.startActivity(a2);
return false;
});
}
PreferencesUtil.addPreferenceCategory(this, getString("vtsettmod"));
if (!vkme()) {
PreferencesUtil.addPreference(this, "", getString("vtlfeed"), feedsumm, "ic_newsfeed_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(FeedFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("dockbar_editor"), docksumm, "ic_list_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(DockBarFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlmusic"), musicsumm, "ic_music_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(MusicFragment.class).a(context);
context.startActivity(a2);
return false;
});
}
PreferencesUtil.addPreference(this, "", getString("vtlmessages"), msgsumm, "ic_message_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(MessagesFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlactivity"), activitysumm, "ic_write_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(ActivityFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlthemes"), themessumm, "ic_palette_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(ThemesFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtltgs"), tgssumm, "ic_telegram", preference -> {
Context context = getContext();
Intent a2 = new Navigator(StickersFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlinterface"), interfacesumm, "ic_interface", preference -> {
Context context = getContext();
Intent a2 = new Navigator(InterfaceFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlproxy"), proxysumm, "ic_globe_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(ProxySettingsFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtlother"), othersumm, "ic_more_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(OtherFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreferenceCategory(this, getString("vtsettaboutmod"));
PreferencesUtil.addPreference(this, "", getString("menu_about"), about, "ic_about_24", preference -> {
Context context = getContext();
Intent a2 = new Navigator(AboutAppFragment.class).a(context);
context.startActivity(a2);
return false;
});
PreferencesUtil.addPreference(this, "", getString("opencommit"), "", "ic_link_24", preference -> {
getContext().startActivity(new Intent("android.intent.action.VIEW").setData(Uri.parse(getCommitLink())));
return false;
});
PreferencesUtil.addPreference(this, "", getString("vtfaq"), "", "ic_help_24", preference -> {
getContext().startActivity(new Intent("android.intent.action.VIEW").setData(Uri.parse("https://t.me/s/vtosters_faq")));
return false;
});
PreferencesUtil.addPreference(this, "", getString("reportbug"), "", "ic_bug_24", preference -> {
getContext().startActivity(new Intent("android.intent.action.VIEW").setData(Uri.parse("https://github.com/vtosters/lite/issues")));
return false;
});
PreferencesUtil.addPreference(this, "", getString("download_latest_vtl"), "", "ic_download_24", preference -> {
getContext().startActivity(new Intent("android.intent.action.VIEW").setData(Uri.parse("https://github.com/vtosters/lite/releases/latest")));
return false;
});
}
public static String getValAsString(String stringid, Boolean value) {
if(disableSettingsSumms()) return "";
if (value){
return getString(stringid) + ": " + getString("vtlsettenabled");
}
return getString(stringid) + ": " + getString("vtlsettdisabled");
}
public static String getSSFSsumm() {
if(disableSettingsSumms()) return "";
if(hasSpecialVerif()) return getString("vtlssfssumm") + ": " + getString("vtlsettverifyes");
return getString("vtlssfssumm") + ": " + getString("vtlsettverifno");
}
public static String getDocksumm() {
if(disableSettingsSumms()) return "";
return getString("vtldocksumm") + ": " + DockBarManager.getInstance().getTabCount();
}
public static String getTGSsumm() {
if(disableSettingsSumms()) return "";
return getString("vtltgssumm") + ": " + TelegramStickersService.getInstance(getContext()).getPacksListReference().size();
}
public static String getMultiAccsumm() {
if(disableSettingsSumms() || getAccountPrefsCount() <= 1) return "";
return getString("vtlmultiaccsumm") + ": " + workingAccounts();
}
@Override
public int aq() {
return getIdentifier("notification_settings", "string");
}
}
@@ -3,7 +3,10 @@ package ru.vtosters.lite.ui.fragments.dockbar;
import static ru.vtosters.lite.utils.Globals.getContext;
import static ru.vtosters.lite.utils.Globals.getString;
import static ru.vtosters.lite.utils.Preferences.newfeed;
import static ru.vtosters.lite.utils.Preferences.olddock;
import static ru.vtosters.lite.utils.Preferences.oldicons;
import static ru.vtosters.lite.utils.Preferences.useNewSettings;
import static ru.vtosters.lite.utils.Preferences.vkme;
import static ru.vtosters.lite.utils.Preferences.vkme_notifs;
import com.vk.apps.AppsFragment;
import com.vk.discover.DiscoverFragment;
@@ -18,7 +21,6 @@ import com.vtosters.lite.R;
import com.vtosters.lite.fragments.GamesFragment;
import com.vtosters.lite.fragments.PhotosFragment;
import com.vtosters.lite.fragments.ProfileFragment;
import com.vtosters.lite.fragments.SettingsListFragment;
import com.vtosters.lite.fragments.d.DocumentsViewFragment;
import com.vtosters.lite.fragments.f.FriendsFragment;
import com.vtosters.lite.fragments.g.BirthdaysFragment;
@@ -79,11 +81,19 @@ public class DockBarManager {
File dockbar = new File(getContext().getFilesDir(), "dockbar.json");
if (!dockbar.exists()) {
mSelectedTabs.add(new DockBarTab("tab_news", olddock() ? R.drawable.ic_newsfeed_28 : R.drawable.ic_menu_newsfeed_outline_28, R.string.newsfeed, R.id.tab_news, newfeed() ? HomeFragment.class : NewsfeedFragment.class));
mSelectedTabs.add(new DockBarTab("tab_discover", olddock() ? R.drawable.ic_search_28 : R.drawable.ic_menu_search_outline_28, R.string.search, R.id.tab_discover, DiscoverFragment.class ));
mSelectedTabs.add(new DockBarTab("tab_messages", olddock() ? R.drawable.ic_menu_messages_28 : R.drawable.ic_message_28_outline, R.string.messages, R.id.tab_messages, DialogsFragment.class));
mSelectedTabs.add(new DockBarTab("tab_feedback", olddock() ? R.drawable.ic_menu_notifications_28 : R.drawable.ic_menu_notification_outline_28, R.string.feedback, R.id.tab_feedback, NotificationsContainerFragment.class));
mSelectedTabs.add(new DockBarTab("tab_menu", olddock() ? R.drawable.ic_menu_more_28 : R.drawable.ic_menu_more_outline_28, R.string.menu, R.id.tab_menu, MenuFragment.class));
if(vkme()) {
mSelectedTabs.add(new DockBarTab("tab_settings", R.drawable.ic_settings_24, R.string.menu_settings, R.id.menu_settings, useNewSettings()));
if(vkme_notifs()) mSelectedTabs.add(new DockBarTab("tab_feedback", oldicons() ? R.drawable.ic_menu_notifications_28 : R.drawable.ic_menu_notification_outline_28, R.string.feedback, R.id.tab_feedback, NotificationsContainerFragment.class));
mSelectedTabs.add(new DockBarTab("tab_messages", oldicons() ? R.drawable.ic_menu_messages_28 : R.drawable.ic_message_28_outline, R.string.messages, R.id.tab_messages, DialogsFragment.class));
mSelectedTabs.add(new DockBarTab("tab_profile", R.drawable.libverify_ic_account_circle_white, R.string.profile, R.id.profile, ProfileFragment.class));
return;
}
mSelectedTabs.add(new DockBarTab("tab_news", oldicons() ? R.drawable.ic_newsfeed_28 : R.drawable.ic_menu_newsfeed_outline_28, R.string.newsfeed, R.id.tab_news, newfeed() ? HomeFragment.class : NewsfeedFragment.class));
mSelectedTabs.add(new DockBarTab("tab_discover", oldicons() ? R.drawable.ic_search_28 : R.drawable.ic_menu_search_outline_28, R.string.search, R.id.tab_discover, DiscoverFragment.class ));
mSelectedTabs.add(new DockBarTab("tab_messages", oldicons() ? R.drawable.ic_menu_messages_28 : R.drawable.ic_message_28_outline, R.string.messages, R.id.tab_messages, DialogsFragment.class));
mSelectedTabs.add(new DockBarTab("tab_feedback", oldicons() ? R.drawable.ic_menu_notifications_28 : R.drawable.ic_menu_notification_outline_28, R.string.feedback, R.id.tab_feedback, NotificationsContainerFragment.class));
mSelectedTabs.add(new DockBarTab("tab_menu", oldicons() ? R.drawable.ic_menu_more_28 : R.drawable.ic_menu_more_outline_28, R.string.menu, R.id.tab_menu, MenuFragment.class));
mDisabledTabs.add(new DockBarTab("tab_friends", R.drawable.ic_user_24, R.string.friends, R.id.menu_friends, FriendsFragment.class));
mDisabledTabs.add(new DockBarTab("tab_groups", R.drawable.ic_users_24, R.string.groups, R.id.menu_groups, GroupsFragment.class));
@@ -98,7 +108,7 @@ public class DockBarManager {
mDisabledTabs.add(new DockBarTab("tab_payments", R.drawable.ic_money_transfer_24, R.string.money_transfer_money_transfers, R.id.menu_payments, MoneyTransfersFragment.class));
mDisabledTabs.add(new DockBarTab("tab_vk_apps", R.drawable.ic_services_24, R.string.menu_apps, R.id.menu_vk_apps, AppsFragment.class));
mDisabledTabs.add(new DockBarTab("tab_profile", R.drawable.libverify_ic_account_circle_white, R.string.profile, R.id.profile, ProfileFragment.class));
mDisabledTabs.add(new DockBarTab("tab_settings", R.drawable.ic_settings_24, R.string.menu_settings, R.id.menu_settings, SettingsListFragment.class));
mDisabledTabs.add(new DockBarTab("tab_settings", R.drawable.ic_settings_24, R.string.menu_settings, R.id.menu_settings, useNewSettings()));
mDisabledTabs.add(new DockBarTab("tab_brtd", R.drawable.ic_menu_birthdays, R.string.birthdays_title, R.id.menu_birthdays, BirthdaysFragment.class));
} else {
@@ -225,8 +235,11 @@ public class DockBarManager {
int target = adapter.getIndexByViewType(toPosition, adapter.getItemType(toPosition));
if (fromPosition < toPosition) {
if (mSelectedTabs.size() <= MIN_SELECTED_TABS_LIMIT || mSelectedTabs.get(curr).tag.equals("tab_menu"))
return;
if(!vkme()){
if (mSelectedTabs.size() <= MIN_SELECTED_TABS_LIMIT || mSelectedTabs.get(curr).tag.equals("tab_menu")){
return;
}
}
DockBarTab tab = mSelectedTabs.get(curr);
mSelectedTabs.remove(tab);
@@ -296,6 +309,10 @@ public class DockBarManager {
return mSelectedTabs.get(getIndexByViewType(pos, 1));
}
public int getTabCount() {
return mSelectedTabs.size();
}
public DockBarTab getDisabledTab(int pos) {
return mDisabledTabs.get(getIndexByViewType(pos, 2));
}
@@ -38,7 +38,7 @@ public class MultiAccountManager {
return getContext().getSharedPreferences("pref_account_manager" + (account != 0 ? account : ""), Context.MODE_PRIVATE);
}
private static int getAccountPrefsCount() {
public static int getAccountPrefsCount() {
File[] prefs = new File(getContext().getFilesDir().getParent(), "shared_prefs")
.listFiles((dir, name) -> {
return name.matches("pref_account_manager\\d+\\.xml");
@@ -46,7 +46,7 @@ public class MultiAccountManager {
return prefs != null ? prefs.length : 0;
}
private static String withRegex(String base, String regex, String def) {
public static String withRegex(String base, String regex, String def) {
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(base);
if (matcher.find()) {
@@ -57,7 +57,7 @@ public class MultiAccountManager {
public static List<MultiAccountItem> buildList() {
List<MultiAccountItem> list = new ArrayList<>();
for (int i = 0; i <= getAccountPrefsCount(); i++) {
for (int i = 0; i <= workingAccounts(); i++) {
SharedPreferences prefs = getContext().getSharedPreferences("pref_account_manager" + i, Context.MODE_PRIVATE);
String keyVKAccount = prefs.getString("key_vk_account", "");
if (!keyVKAccount.isEmpty()) {
@@ -72,6 +72,18 @@ public class MultiAccountManager {
return list;
}
public static int workingAccounts() {
int count = 0;
for (int i = 0; i <= getAccountPrefsCount(); i++) {
SharedPreferences prefs = getContext().getSharedPreferences("pref_account_manager" + i, Context.MODE_PRIVATE);
String keyVKAccount = prefs.getString("key_vk_account", "");
if (!keyVKAccount.isEmpty()) {
++count;
}
}
return count;
}
public static boolean switchAccount(int i) {
int account = getPreferences().getInt("account", 0);
if (account == i) return false;
@@ -81,7 +93,7 @@ public class MultiAccountManager {
}
public static void addAccount() {
getPreferences().edit().putInt("account", getAccountPrefsCount()).commit();
getPreferences().edit().putInt("account", workingAccounts()).commit();
}
public static void deleteAccount(int i) {
@@ -90,7 +102,7 @@ public class MultiAccountManager {
prefs.edit().clear().commit();
File file = new File(new File(getContext().getFilesDir().getParent(), "shared_prefs"), "pref_account_manager" + i);
if (file.exists()) file.delete();
if (account == i && getAccountPrefsCount() > 0) {
if (account == i && workingAccounts() > 0) {
List<MultiAccountItem> accounts = buildList();
if (accounts.size() > 0)
switchAccount(buildList().get(0).index);
@@ -1,7 +1,9 @@
package ru.vtosters.lite.utils;
import static androidx.core.content.ContextCompat.getDrawable;
import static ru.vtosters.lite.utils.Preferences.getLocale;
import static ru.vtosters.lite.utils.Preferences.preferences;
import static ru.vtosters.lite.utils.Themes.isDarkTheme;
import android.app.Activity;
import android.app.Application;
@@ -13,10 +15,18 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.StrictMode;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.Toast;
@@ -24,13 +34,17 @@ import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;
import com.vk.navigation.Navigator;
import com.vtosters.lite.UserProfile;
import com.vtosters.lite.VKActivity;
import com.vtosters.lite.api.ExtendedUserProfile;
import com.vtosters.lite.auth.VKAccountManager;
import com.vtosters.lite.im.ImEngineProvider;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
@@ -92,6 +106,41 @@ public class Globals {
return extendedUserProfile.a;
}
@SuppressWarnings("deprecation")
public static Drawable drawableFromUrl(String url) {
try {
URL aryURI = new URL(url);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
URLConnection conn = aryURI.openConnection();
InputStream is = conn.getInputStream();
Bitmap bmp = BitmapFactory.decodeStream(is);
return new BitmapDrawable(getResources(), Bitmap.createScaledBitmap(getBitmapClippedCircle(bmp), convertDpToPixel(48), convertDpToPixel(48), true));
} catch (Exception e) {
return getDrawable(getContext(), com.vtosters.lite.R.drawable.libverify_ic_account_circle_white);
}
}
public static Bitmap getBitmapClippedCircle(Bitmap bitmap) {
final int width = bitmap.getWidth();
final int height = bitmap.getHeight();
final Bitmap outputBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
final Path path = new Path();
path.addCircle(
(float)(width / 2)
, (float)(height / 2)
, (float) Math.min(width, (height / 2))
, Path.Direction.CCW);
final Canvas canvas = new Canvas(outputBitmap);
canvas.clipPath(path);
canvas.drawBitmap(bitmap, 0, 0, null);
return outputBitmap;
}
public static void restartApplication() {
Context ctx = getContext();
PackageManager pm = ctx.getPackageManager();
@@ -103,6 +152,26 @@ public class Globals {
Runtime.getRuntime().exit(0);
} // Application restart (works on sdk 29+ too)
public static void restartApplicationWithTimer() {
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
restartApplication();
}
}, 500);
}
public static void restartApplicationInto(Class Class) {
Context ctx = getContext();
PackageManager pm = ctx.getPackageManager();
Intent intent = new Navigator(Class).a(ctx);
Intent mainIntent = Intent.makeRestartActivityTask(intent.getComponent());
ctx.startActivity(mainIntent);
Runtime.getRuntime().exit(0);
}
@NonNull
public static Context getContext() {
try {
@@ -254,6 +323,8 @@ public class Globals {
configuration.setLayoutDirection(locale);
resources.updateConfiguration(configuration, resources.getDisplayMetrics());
edit().putBoolean("isdark", isDarkTheme()).commit();
return context;
} // Language changer and BaseContext injector
@@ -13,6 +13,8 @@ import static ru.vtosters.lite.utils.Preferences.friendsrecomm;
import static ru.vtosters.lite.utils.Preferences.getBoolValue;
import static ru.vtosters.lite.utils.Preferences.newfeed;
import static ru.vtosters.lite.utils.Preferences.postsrecomm;
import static ru.vtosters.lite.utils.Preferences.useNewSettings;
import static ru.vtosters.lite.utils.Preferences.vkme;
import com.vk.apps.AppsFragment;
import com.vk.core.preference.Preference;
@@ -27,7 +29,6 @@ import com.vk.notifications.NotificationsContainerFragment;
import com.vtosters.lite.fragments.GamesFragment;
import com.vtosters.lite.fragments.PhotosFragment;
import com.vtosters.lite.fragments.ProfileFragment;
import com.vtosters.lite.fragments.SettingsListFragment;
import com.vtosters.lite.fragments.d.DocumentsViewFragment;
import com.vtosters.lite.fragments.f.FriendsFragment;
import com.vtosters.lite.fragments.g.BirthdaysFragment;
@@ -175,6 +176,9 @@ public class Newsfeed {
}
public static long getUpdateNewsfeed(boolean refresh_timeout) {
if (vkme()) {
return MAX_VALUE;
}
switch (getPrefsValue("newsupdate")) {
case "no_update":
return MAX_VALUE;
@@ -186,6 +190,9 @@ public class Newsfeed {
}
public static Class getStartFragment() {
if (vkme()) {
return DialogsFragment.class;
}
switch (getPrefsValue("start_values")) {
case "newsfeed":
return newfeed() ? HomeFragment.class : NewsfeedFragment.class;
@@ -202,7 +209,7 @@ public class Newsfeed {
case "videos":
return VideosFragment.class;
case "settings":
return SettingsListFragment.class;
return useNewSettings();
case "apps":
return AppsFragment.class;
case "discover":
@@ -1,6 +1,7 @@
package ru.vtosters.lite.utils;
import static android.os.Build.VERSION;
import static ru.vtosters.lite.f0x1d.VTVerifications.hasPrometheus;
import static ru.vtosters.lite.f0x1d.VTVerifications.isVerified;
import static ru.vtosters.lite.ui.fragments.multiaccount.MultiAccountManager.migrate;
import static ru.vtosters.lite.utils.DeletedMessagesHandler.reloadMessagesList;
@@ -27,11 +28,14 @@ import android.util.Log;
import com.vk.core.util.Screen;
import com.vk.im.engine.models.users.UserSex;
import com.vtosters.lite.data.Users;
import com.vtosters.lite.fragments.SettingsListFragment;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import ru.vtosters.lite.ui.fragments.VTSettings;
public class Preferences {
public static SharedPreferences preferences = getContext().getSharedPreferences("com.vtosters.lite_preferences", Context.MODE_PRIVATE);
@@ -47,7 +51,9 @@ public class Preferences {
migrate();
reloadMessagesList();
registerActivities(application);
LoadLibrary("vkopustest");
if(dev()){
LoadLibrary("vkopustest");
}
systemThemeChanger();
} // VK Init
@@ -74,7 +80,7 @@ public class Preferences {
}
public static boolean systemtheme() {
return getBoolValue("systemtheme", true);
return getBoolValue("systemtheme", true) && VERSION.SDK_INT >= 28;
}
public static boolean authorsrecomm() {
@@ -113,8 +119,12 @@ public class Preferences {
return getBoolValue("adsgroup", false);
}
public static boolean olddock() {
return getBoolValue("olddock", false);
public static boolean oldicons() {
return getBoolValue("oldicons", false);
}
public static boolean vkme() {
return getBoolValue("vkme", false);
}
public static boolean adsslider() {
@@ -137,6 +147,11 @@ public class Preferences {
return getBoolValue("awayphp", true);
}
public static Class useNewSettings() {
boolean bool = getBoolValue("useNewSettings", true);
return bool? VTSettings.class : SettingsListFragment.class;
}
public static boolean VKUI_INJ() {
return getBoolValue("VKUI_INJ", true);
}
@@ -182,7 +197,7 @@ public class Preferences {
}
public static boolean dockcounter() {
return getBoolValue("dockcounter", true);
return getBoolValue("dockcounter", true) && !vkme();
}
public static boolean feedcache() {
@@ -338,6 +353,10 @@ public class Preferences {
return getBoolValue("vkme_msg", false);
}
public static boolean vkme_notifs() {
return getBoolValue("vkme_notifs", false);
}
public static boolean roundedmsgs() {
return getBoolValue("roundedmsgs", false);
}
@@ -346,6 +365,10 @@ public class Preferences {
return getBoolValue("disableanimstickers", true);
}
public static boolean disableSettingsSumms() {
return getBoolValue("disableSettingsSumms", false);
}
public static boolean donaterecomm() {
return getBoolValue("donaterecomm", false);
}
@@ -366,6 +389,11 @@ public class Preferences {
return isVerified(getUserId());
}
public static boolean hasSpecialVerif() {
return hasPrometheus(getUserId());
}
public static String getLocale() {
String string = getPrefsValue("lang_value");
@@ -200,7 +200,6 @@ public class Proxy {
return getPrefsValue("proxy").equals("apiproxy");
}
public static boolean proxyvk() {
return getBoolValue("proxyvk", false);
} // Official vk proxy enforcer
@@ -1,7 +1,8 @@
package ru.vtosters.lite.utils;
import static android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
import static ru.vtosters.lite.utils.Globals.getContext;
import static com.vk.im.ui.themes.ImTheme.*;
import static ru.vtosters.lite.utils.Globals.edit;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
import static ru.vtosters.lite.utils.Globals.getResources;
@@ -10,8 +11,10 @@ import static ru.vtosters.lite.utils.Preferences.isBGStickersEnabled;
import static ru.vtosters.lite.utils.Preferences.navbar;
import static ru.vtosters.lite.utils.Preferences.roundedmsgs;
import static ru.vtosters.lite.utils.Preferences.systemtheme;
import static ru.vtosters.lite.utils.Preferences.vkme;
import static ru.vtosters.lite.utils.Preferences.vksans;
import android.app.Activity;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
@@ -45,6 +48,9 @@ public class Themes {
ImThemeHelper.b.a(imtheme); // ImThemeHelper.b.a(ImTheme value) VK Theme Msg apply
} // Apply VKTheme and ImTheme (hard applying without dynamic theme changing)
public static void setTheme(Activity activity) {
VKThemeHelper.a(activity); // apply changed theme
}
public static boolean isDarkTheme() {
return !VKThemeHelper.d();
}
@@ -127,9 +133,9 @@ public class Themes {
public static ImTheme getImDarkTheme() {
switch (getPrefsValue("darktheme")) {
case "amoled":
return roundedmsgs() ? ImTheme.VKME_AMOLED : ImTheme.VKAPP_AMOLED;
return roundedmsgs() ? VKME_AMOLED : VKAPP_AMOLED;
default:
return roundedmsgs() ? ImTheme.VKME_DARK : ImTheme.VKAPP_DARK;
return roundedmsgs() ? VKME_DARK : VKAPP_DARK;
}
} // Return needed theme for theme changer
@@ -143,7 +149,7 @@ public class Themes {
public static ImTheme getImLightTheme() {
switch (getPrefsValue("lighttheme")) {
default:
return roundedmsgs() ? ImTheme.VKME_LIGHT : ImTheme.VKAPP_LIGHT;
return roundedmsgs() ? VKME_LIGHT : VKAPP_LIGHT;
}
} // Return needed theme for theme changer
@@ -230,6 +236,13 @@ public class Themes {
return Color.argb(Color.alpha(color), red, green, blue);
}
public static int fixTextColor(int resid) {
if (resid == R.color.music_action_button_gray || resid == R.color.cool_grey || resid == R.color.accent_blue){
return isDarkTheme()? R.color.white : R.color.cool_grey;
}
return resid;
}
public static int halfAlpha(int src) {
return ColorUtils.setAlphaComponent(src, 169);
}
@@ -305,24 +318,41 @@ public class Themes {
return "images";
}
public static int getNavigationHeight(int Default) {
int VKME = R.dimen.design_bottom_sheet_peek_height_min;
return vkme()? VKME : Default;
}
public static int getNavigationWidth(int Default) {
int VKME = R.dimen.app_minimumsize_h;
return vkme()? VKME : Default;
}
public static void systemThemeChanger() {
if (isDarkTheme()){
boolean isDarkTheme = isDarkTheme();
if (isDarkTheme){
applyTheme(getDarkTheme(), getImDarkTheme());
} else {
applyTheme(getLightTheme(), getImLightTheme());
}
if (!systemtheme()) return;
if (!systemtheme()){
edit().putBoolean("isdark", isDarkTheme).commit();
return;
}
int currentNightMode = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
switch (currentNightMode) {
case Configuration.UI_MODE_NIGHT_UNDEFINED:
applyTheme(getLightTheme(), getImLightTheme());
break;
case Configuration.UI_MODE_NIGHT_NO:
edit().putBoolean("isdark", false).commit();
applyTheme(getLightTheme(), getImLightTheme());
break;
case Configuration.UI_MODE_NIGHT_YES:
edit().putBoolean("isdark", true).commit();
applyTheme(getDarkTheme(), getImDarkTheme());
break;
}
+4 -4
View File
@@ -58,15 +58,15 @@ body[scheme=space_gray] {
--counter_secondary_text: #000000 !important;
--loader_background: #000000 !important;
--overlay_status_background: #000000 !important;
--header_background: #19191a !important;
--header_alternate_background: #19191a !important;
--header_background: #000000 !important;
--header_alternate_background: #000000 !important;
--separator_alternate: #000000 !important;
--segmented_control_bar_background: #000000 !important;
--search_bar_background: #000000 !important;
/* background */
--background_page: #000000 !important;
--header_background_before_blur: #19191a !important;
--header_background_before_blur_alternate: #19191a !important;
--header_background_before_blur: #000000 !important;
--header_background_before_blur_alternate: #000000 !important;
/* lighter BG (text fields) */
--attach_picker_tab_inactive_background: #121212 !important;
--background_keyboard: #121212 !important;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 B

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 B

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -2,5 +2,5 @@
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="8.0dip" />
<solid android:color="#10000c1a" />
<solid android:color="?background_content" />
</shape>
+1 -1
View File
@@ -16,7 +16,7 @@
<TextView
android:textSize="14.0sp"
android:textColor="#ff528bcc"
android:textColor="?accent"
android:gravity="center|right"
android:id="@id/tv_reset"
android:background="@drawable/picker_white_ripple_bounded"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView android:textSize="16.0sp"
android:textColor="@color/muted_black"
android:textColor="?text_primary"
android:ellipsize="marquee"
android:gravity="center|left"
android:id="@android:id/text1"
+1 -1
View File
@@ -21,7 +21,7 @@
<TextView
android:textSize="14.0dip"
android:textStyle="normal"
android:textColor="?header_text"
android:textColor="?text_primary"
android:ellipsize="end"
android:gravity="center_vertical"
android:id="@id/playlist_title"
+1 -1
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView android:textColorHint="?header_text"
<TextView android:textColorHint="?text_primary"
android:gravity="center_vertical"
android:paddingLeft="60.0dip"
android:paddingRight="56.0dip"
+1 -1
View File
@@ -32,7 +32,7 @@
android:layout_height="fill_parent"
android:src="@drawable/ic_back_24"
android:scaleType="centerInside"
android:tint="?header_text"
android:tint="?text_primary"
android:contentDescription="@string/music_talkback_go_back"
android:layout_marginStart="8.0dip"
style="@style/ActionButton.Gray" />
+1 -1
View File
@@ -9,7 +9,7 @@
<EditText
android:textSize="16.0dip"
android:textColorHint="?header_text"
android:textColorHint="?text_primary"
android:id="@id/search_input"
android:background="@null"
android:paddingRight="16.0dip"
+8 -8
View File
@@ -6,7 +6,7 @@
android:gravity="center_vertical"
android:orientation="horizontal"
android:id="@id/search_box"
android:background="@drawable/bg_modern_search"
android:background="@drawable/bg_modern_search_im_new"
android:backgroundTint="?background_content"
android:focusable="true"
android:focusableInTouchMode="true"
@@ -21,12 +21,12 @@
android:layout_height="48.0dip"
android:src="@drawable/ic_back_24"
android:scaleType="centerInside"
android:tint="?header_text" />
android:tint="?text_primary" />
<com.vk.core.view.NoMenuEditText
android:textSize="16.0dip"
android:textColor="?header_text"
android:textColorHint="?header_text_secondary"
android:textColor="?text_primary"
android:textColorHint="?text_secondary"
android:gravity="center_vertical"
android:id="@id/query"
android:background="@null"
@@ -42,8 +42,8 @@
<TextView
android:textSize="16.0dip"
android:textColor="?header_text"
android:textColorHint="?header_text_secondary"
android:textColor="?text_primary"
android:textColorHint="?text_secondary"
android:ellipsize="end"
android:gravity="center_vertical"
android:id="@id/query_static"
@@ -65,7 +65,7 @@
android:layout_height="40.0dip"
android:src="@drawable/ic_search_params_24"
android:scaleType="centerInside"
android:tint="?header_text" />
android:tint="?text_primary" />
<ImageView
android:layout_gravity="center_vertical"
@@ -75,6 +75,6 @@
android:layout_height="40.0dip"
android:src="@drawable/ic_cancel_24"
android:scaleType="centerInside"
android:tint="?header_text" />
android:tint="?text_primary" />
</LinearLayout>
</merge>
+31 -2
View File
@@ -4290,7 +4290,7 @@
<string name="appearance_other_color_webview_summary">Покраска страниц, таких как VKID, под тему приложения</string>
<string name="interface_global_old_icons">Старые иконки</string>
<string name="interface_global_old_icons_summary">Использовать старые иконки в докбаре. Необходимо сбросить настройки докбара для применения изменений</string>
<string name="interface_global_old_icons_summary">Необходимо сбросить настройки докбара для применения изменений</string>
<string name="activity_what_is_it">Что это за функция?</string>
<string name="activity_dnr_summary">Функция позволяет вам не отправлять статус прочтения вами сообщения собеседника</string>
@@ -4348,7 +4348,7 @@
<string name="debug_experimental_page_stats">Статистика страницы</string>
<string name="debug_experimental_page_stats_summary">Вкшники вроде перестали отдавать инфу</string>
<string name="debug_experimental_vk_sans_font">Шрифт VK Sans</string>
<string name="debug_experimental_vk_me_mode">Режим VK Me MSG</string>
<string name="debug_experimental_vk_me_mode">Режим VK Me для диалогов</string>
<string name="debug_experimental_libverify">Поддержка libverify</string>
<string name="debug_experimental_libverify_summary">Включение может пофиксить 2фа вход</string>
<string name="debug_experimental_opusmodule">Модуль Opus</string>
@@ -4446,5 +4446,34 @@
<string name="franimation">Анимация фрагментов (бета)</string>
<string name="selectfranimation">Выберите анимацию фрагментов</string>
<string name="vkme">Режим VK Me</string>
<string name="vkmesumm">Замена докбара и некоторых элементов на что-то похожее как в VK Me</string>
<string name="vtsettaccount">Аккаунт</string>
<string name="vtsettdarktheme">Темная тема</string>
<string name="vtsettaboutmod">О модификации</string>
<string name="vtsettmod">Настройки мода</string>
<string name="vtlsettenabled">Включено</string>
<string name="vtlsettdisabled">Отключено</string>
<string name="vtlsettverifno">Нет</string>
<string name="vtlsettverifyes">Да</string>
<string name="vtlfeedsumm">Блокировать рекламу</string>
<string name="vtldocksumm">Докбар элементов</string>
<string name="vtlmusicsumm">VKX интеграция</string>
<string name="vtlmsgsumm">Режим VK Me</string>
<string name="vtlactivitysumm">Офлайн режим</string>
<string name="vtlthemessumm">Покраска навбара</string>
<string name="vtltgssumm">Установлено паков</string>
<string name="vtlinterfacesumm">Округление чисел</string>
<string name="vtlproxysumm">Проксирование</string>
<string name="vtlothersumm">Отображение верификаций</string>
<string name="vtlmultiaccsumm">Доступно аккаунтов</string>
<string name="vtlhidesumm">Скрыть подписи в настройках</string>
<string name="vtlssfssumm">Есть доступ</string>
<string name="empty_text" />
</resources>
+7 -1
View File
@@ -207,7 +207,13 @@
<style name="Base.Widget.AppCompat.ListView" parent="@android:style/Widget.Material.ListView" />
<style name="Base.Widget.AppCompat.ListView.DropDown" parent="@android:style/Widget.Material.ListView.DropDown" />
<style name="Base.Widget.AppCompat.ListView.DropDown" parent="@android:style/Widget.Material.ListView.DropDown">
<item name="android:background">?background_content</item>
<item name="android:textColorPrimary">?text_primary</item>
<item name="android:textColorSecondary">?text_secondary</item>
<item name="android:titleTextAppearance">@style/ToolbarTitle</item>
<item name="android:colorAccent">?accent</item>
</style>
<style name="Base.Widget.AppCompat.ListView.Menu" parent="@style/Base.Widget.AppCompat.ListView" />
+9 -6
View File
@@ -13,6 +13,7 @@
<item name="accent">@android:color/system_accent1_100</item>
<item name="text_primary">@android:color/system_accent1_50</item>
<item name="text_secondary">@android:color/system_neutral2_200</item>
<item name="android:textColorSecondary">?text_secondary</item>
<item name="background_content">@android:color/system_neutral1_900</item>
<item name="background_page">@android:color/system_neutral1_800</item>
<item name="action_sheet_action_foreground">@color/white</item>
@@ -209,6 +210,7 @@
<item name="accent">@android:color/system_accent1_500</item>
<item name="text_primary">@android:color/system_accent1_900</item>
<item name="text_secondary">@android:color/system_accent2_700</item>
<item name="android:textColorSecondary">?text_secondary</item>
<item name="background_content">@android:color/system_neutral1_10</item>
<item name="background_page">@android:color/system_neutral1_50</item>
<item name="android:windowLightStatusBar">true</item>
@@ -478,7 +480,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/gray_950</item>
<item name="header_background_before_blur_alternate">@color/gray_950</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -577,7 +579,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/black</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@android:color/system_accent1_100</item>
@@ -593,6 +595,7 @@
<item name="toolbar_attach_background_to">@color/gray_600</item>
<item name="writebar_icon">@color/gray_400</item>
<item name="tabbar_fix">?tabbar_background</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="VkIm.Theme.VkApp.Light" parent="@style/VkIm.Theme.VkApp">
@@ -1241,7 +1244,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/black</item>
<item name="header_background_before_blur_alternate">@color/black</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -1426,7 +1429,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/black</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@android:color/system_accent1_100</item>
@@ -2082,7 +2085,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/black</item>
<item name="header_background_before_blur_alternate">@color/black</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -2267,7 +2270,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/black</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@android:color/system_accent1_100</item>
+31 -2
View File
@@ -4414,7 +4414,7 @@ May look like a fake leaving the online"</string>
<string name="appearance_other_color_webview_summary">Color pages such as VKID in app theme</string>
<string name="interface_global_old_icons">Old icons</string>
<string name="interface_global_old_icons_summary">Use old icons in dockbar. You should reset its setting to apply changes</string>
<string name="interface_global_old_icons_summary">You should reset its setting to apply changes</string>
<string name="activity_what_is_it">What is it?</string>
<string name="activity_dnr_summary">Function lets you don\'t send read message status</string>
@@ -4474,7 +4474,7 @@ May look like a fake leaving the online"</string>
<string name="debug_experimental_page_stats">Page stats</string>
<string name="debug_experimental_page_stats_summary">VK Devs seems to have stopped sending info</string>
<string name="debug_experimental_vk_sans_font">VK Sans font</string>
<string name="debug_experimental_vk_me_mode">VK Me MSG mode</string>
<string name="debug_experimental_vk_me_mode">VK Me dialogs mode</string>
<string name="debug_experimental_libverify">libverify support</string>
<string name="debug_experimental_libverify_summary">Turning on may fix 2fa login</string>
<string name="debug_experimental_opusmodule">Opus Module</string>
@@ -4580,6 +4580,35 @@ May look like a fake leaving the online"</string>
<string name="franimation">Fragment animation (beta)</string>
<string name="selectfranimation">Select fragment animation</string>
<string name="vkme">VK Me mode</string>
<string name="vkmesumm">Replacing the dock and some elements with something similar as in VK Me</string>
<string name="vtsettaccount">Account</string>
<string name="vtsettdarktheme">Dark theme</string>
<string name="vtsettaboutmod">About modification</string>
<string name="vtsettmod">Mod settings</string>
<string name="vtlsettenabled">enabled</string>
<string name="vtlsettdisabled">disabled</string>
<string name="vtlsettverifno">No</string>
<string name="vtlsettverifyes">Yes</string>
<string name="vtlfeedsumm">Block ads</string>
<string name="vtldocksumm">Dockbar elements</string>
<string name="vtlmusicsumm">VKX Integration</string>
<string name="vtlmsgsumm">VK Me mode</string>
<string name="vtlactivitysumm">Offline mode</string>
<string name="vtlthemessumm">Navbar coloring</string>
<string name="vtltgssumm">Installed packs</string>
<string name="vtlinterfacesumm">Round numbers</string>
<string name="vtlproxysumm">Proxy</string>
<string name="vtlothersumm">Show verifications</string>
<string name="vtlmultiaccsumm">Available accounts</string>
<string name="vtlhidesumm">Hide settings summaries</string>
<string name="vtlssfssumm">Have access</string>
<item type="string" name="APKTOOL_DUMMY_10be" />
<item type="string" name="APKTOOL_DUMMY_10bf" />
<item type="string" name="APKTOOL_DUMMY_10c0" />
+18 -11
View File
@@ -38,14 +38,14 @@
<style name="ActionBarThemeFix" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:textColorPrimary">@color/white</item>
<item name="android:textColorSecondary">?header_tint</item>
<item name="android:textColorSecondary">@color/white</item>
<item name="android:selectableItemBackground">@drawable/highlight_toolbar</item>
<item name="android:actionBarItemBackground">@drawable/highlight_icon_white_unbounded</item>
<item name="colorAccent">@color/white</item>
<item name="colorPrimary">@color/toolbar_blue_background</item>
<item name="layout_scrollFlags">enterAlways|scroll|snap</item>
<item name="titleTextAppearance">@style/ToolbarTitle</item>
<item name="toolbarIconsColor">?header_text</item>
<item name="toolbarIconsColor">@color/white</item>
</style>
<style name="ActionBarTheme.ItemsFull" parent="@style/ActionBarTheme" />
@@ -1504,7 +1504,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/black</item>
<item name="header_background_before_blur_alternate">@color/black</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -1689,7 +1689,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/black</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@color/sky_300</item>
@@ -2668,7 +2668,7 @@
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColorHint">?header_text</item>
<item name="android:background">@drawable/bg_modern_search</item>
<item name="android:background">@drawable/bg_modern_search_im_new</item>
<item name="android:backgroundTint">?background_content</item>
<item name="android:maxLines">1</item>
</style>
@@ -3419,6 +3419,9 @@
</style>
<style name="RtlOverlay.Widget.AppCompat.PopupMenuItem.Text" parent="@android:style/Widget">
<item name="android:textColor">?text_primary</item>
<item name="android:textColorPrimary">?text_primary</item>
<item name="android:textColorSecondary">?text_secondary</item>
<item name="android:textAlignment">viewStart</item>
<item name="android:layout_alignParentStart">true</item>
</style>
@@ -4720,6 +4723,7 @@
<item name="toolbar_attach_background_to">@color/steel_gray_250</item>
<item name="writebar_icon">@color/azure_300</item>
<item name="tabbar_fix">?accent</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="Vk.Theme.client_amoled_generated" parent="@style/Vk.Theme.Dark">
@@ -4799,7 +4803,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/gray_950</item>
<item name="header_background_before_blur_alternate">@color/gray_950</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -4898,7 +4902,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/black</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@color/sky_300</item>
@@ -4914,6 +4918,7 @@
<item name="toolbar_attach_background_to">@color/gray_600</item>
<item name="writebar_icon">@color/gray_400</item>
<item name="tabbar_fix">?tabbar_background</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="Vk.Theme.client_dark_generated" parent="@style/Vk.Theme.Dark">
@@ -5108,6 +5113,7 @@
<item name="toolbar_attach_background_to">@color/gray_600</item>
<item name="writebar_icon">@color/gray_400</item>
<item name="tabbar_fix">?tabbar_background</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="Vk.Theme.client_light_generated" parent="@style/Vk.Theme">
@@ -5302,6 +5308,7 @@
<item name="toolbar_attach_background_to">@color/steel_gray_250</item>
<item name="writebar_icon">@color/steel_gray_300</item>
<item name="tabbar_fix">?accent</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="Vk.Theme.space_gray_generated" parent="@style/Vk.Theme">
@@ -5495,6 +5502,7 @@
<item name="toolbar_attach_background_from">@color/gray_500</item>
<item name="toolbar_attach_background_to">@color/gray_600</item>
<item name="writebar_icon">@color/gray_100</item>
<item name="android:textColorSecondary">?text_secondary</item>
</style>
<style name="VkAlertDialogTheme" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
@@ -6349,8 +6357,7 @@
</style>
<style name="VkIm.Theme.Search.VkApp" parent="@style/VkIm.Theme.Search">
<item name="search_bg">@drawable/bg_modern_search</item>
<item name="android:tint">?background_content</item>
<item name="search_bg">@drawable/bg_modern_search_im_new</item>
</style>
<style name="VkIm.Theme.Search.VkMe" parent="@style/VkIm.Theme.Search">
@@ -7493,7 +7500,7 @@
<item name="header_alternate_tab_active_indicator">@color/gray_100</item>
<item name="header_alternate_tab_active_text">@color/gray_100</item>
<item name="header_alternate_tab_inactive_text">@color/gray_500</item>
<item name="header_background">@color/gray_900</item>
<item name="header_background">@color/black</item>
<item name="header_background_before_blur">@color/gray_950</item>
<item name="header_background_before_blur_alternate">@color/gray_950</item>
<item name="header_search_field_background">@color/gray_700</item>
@@ -7674,7 +7681,7 @@
<item name="stories_skeleton_loader_background">@color/gray_700</item>
<item name="switch_ios_off_border">@color/gray_800</item>
<item name="tabbar_active_icon">@color/white</item>
<item name="tabbar_background">@color/gray_900</item>
<item name="tabbar_background">@color/black</item>
<item name="tabbar_inactive_icon">@color/gray_500</item>
<item name="text_action_counter">@color/gray_300</item>
<item name="text_link">@color/sky_300</item>
+4 -4
View File
@@ -41,10 +41,6 @@
android:defaultValue="false"
android:key="vksans"
android:title="@string/debug_experimental_vk_sans_font" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="vkme_msg"
android:title="@string/debug_experimental_vk_me_mode" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="libverify"
@@ -69,6 +65,10 @@
android:defaultValue="true"
android:key="disableanimstickers"
android:title="Disable anim stickers + suggestions" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="useNewSettings"
android:title="Use New Settings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/debug_developer_functions">
<com.vtosters.lite.ui.MaterialSwitchPreference
+4 -5
View File
@@ -39,11 +39,6 @@
android:entryValues="@array/dateformat"
android:key="dateformat"
android:title="@string/interfaceglobaldates" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="olddock"
android:summary="@string/interface_global_old_icons_summary"
android:title="@string/interface_global_old_icons" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="shortinfo"
@@ -80,5 +75,9 @@
android:key="dockcounter"
android:summary="@string/docknumberssum"
android:title="@string/docknumbers" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="disableSettingsSumms"
android:title="@string/vtlhidesumm" />
</PreferenceCategory>
</PreferenceScreen>
+29
View File
@@ -12,6 +12,35 @@
android:title="@string/roundedmsgs" />
<com.vtosters.lite.ui.MaterialSectionDividerPreference />
</PreferenceCategory>
<PreferenceCategory android:title="@string/sett_media">
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="compressPhotos"
android:title="@string/sett_compress_photos" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="compressVideos"
android:title="@string/sett_compress_videos" />
<com.vtosters.lite.ui.MaterialSectionDividerPreference />
</PreferenceCategory>
<PreferenceCategory android:title="VK Me">
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="vkme"
android:summary="@string/vkmesumm"
android:title="@string/vkme" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="vkme_msg"
android:summary="TODO"
android:title="@string/debug_experimental_vk_me_mode" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
android:key="vkme_notifs"
android:summary="Back notif tab"
android:title="vkme_notifs" />
<com.vtosters.lite.ui.MaterialSectionDividerPreference />
</PreferenceCategory>
<PreferenceCategory android:title="@string/interfaceemoji">
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="false"
+4 -4
View File
@@ -20,10 +20,10 @@
android:key="lighttheme"
android:title="@string/appearance_theme_light_theme" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="systemtheme"
android:summary="@string/appearance_theme_use_system_summary"
android:title="@string/appearance_theme_use_system" />
android:defaultValue="false"
android:key="oldicons"
android:summary="@string/interface_global_old_icons_summary"
android:title="@string/interface_global_old_icons" />
<com.vtosters.lite.ui.MaterialSectionDividerPreference />
</PreferenceCategory>
<PreferenceCategory android:title="@string/vticon">
@@ -3610,6 +3610,10 @@
const-class v2, Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v2
invoke-direct {v0, v2, v12}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;Landroid/os/Bundle;)V
invoke-virtual {v0, v1}, Lcom/vk/navigation/Navigator;->c(Landroid/content/Context;)V
@@ -4670,6 +4674,10 @@
const-class v0, Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v0
invoke-direct {v8, v0}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;)V
invoke-virtual {v8, v1}, Lcom/vk/navigation/Navigator;->a(Landroid/content/Context;)Landroid/content/Intent;
@@ -41,7 +41,7 @@
# instance fields
.field private final b:I
.field public final b:I
.field private final c:Lcom/vk/im/engine/models/typing/ComposingType;
@@ -66,7 +66,23 @@
.end method
.method public constructor <init>(IIII)V
.locals 1
.locals 5
invoke-static {p4}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p4
invoke-static {p3}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p3
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p2
invoke-static {p1}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p1
.line 29
invoke-direct {p0}, Lcom/vk/core/serialize/Serializer$StreamParcelableAdapter;-><init>()V
@@ -99,6 +115,18 @@
.method public constructor <init>(IILjava/lang/String;IZ)V
.locals 1
invoke-static {p4}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p4
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p2
invoke-static {p1}, Lru/vtosters/lite/utils/Themes;->fixTextColor(I)I
move-result p1
.line 41
invoke-direct {p0}, Lcom/vk/core/serialize/Serializer$StreamParcelableAdapter;-><init>()V
@@ -129,7 +129,7 @@
move-result-object v0
const/4 v1, 0x0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/vk/imageloader/view/VKImageView;->setClickable(Z)V
@@ -85,9 +85,7 @@
invoke-static {v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->b(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
const-string v0, "\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435!"
invoke-static {v0}, Lcom/vk/core/util/ToastUtils;->a(Ljava/lang/CharSequence;)V
invoke-static {}, Lru/vtosters/lite/utils/Globals;->restartApplicationWithTimer()V
return-void
.end method
@@ -835,6 +835,12 @@
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->vkme()Z
move-result v5
if-nez v5, :cond_228
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$a;
const v6, 0x7f0803bc
@@ -867,6 +873,7 @@
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_228
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$a;
const v6, 0x7f08067b
@@ -349,7 +349,7 @@
if-eqz p2, :cond_1
invoke-virtual {p2, p1}, Landroid/view/ViewGroup;->setBackground(Landroid/graphics/drawable/Drawable;)V
## invoke-virtual {p2, p1}, Landroid/view/ViewGroup;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 107
:cond_1
@@ -72,6 +72,14 @@
iput-object p2, p0, Lcom/vk/music/playlist/PlaylistsFiltersAdapter$b;->a:Landroid/widget/TextView;
iget-object p2, p0, Lcom/vk/music/playlist/PlaylistsFiltersAdapter$b;->a:Landroid/widget/TextView;
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundContent()I
move-result v0
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setBackgroundColor(I)V
const-string p2, "LayoutInflater.from(cont\u2026as TextView\n }"
.line 69
@@ -99,6 +99,10 @@
move-result v0
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getSTextAttr()I
move-result v0
.line 26
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
@@ -217,6 +217,10 @@
const-class v2, Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v2
invoke-direct {p2, v1, v2}, Lcom/vk/menu/MenuFragment$c;->a(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class;
move-result-object v2
@@ -348,6 +348,10 @@
const v0, 0x7f070062
invoke-static {v0}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result v0
invoke-virtual {p2, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result p2
@@ -140,10 +140,12 @@
.line 236
invoke-virtual {p2, p0}, Landroid/widget/ListView;->setSelector(I)V
const p0, 0x7f080693
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundContent()I
move-result v0
.line 237
invoke-virtual {p2, p0}, Landroid/widget/ListView;->setBackgroundResource(I)V
invoke-virtual {p2, v0}, Landroid/widget/ListView;->setBackgroundColor(I)V
.line 238
invoke-virtual {p2, p6}, Landroid/widget/ListView;->setDividerHeight(I)V
@@ -127,6 +127,10 @@
const p2, 0x7f07005b
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationWidth(I)I
move-result p2
.line 57
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
@@ -136,6 +140,10 @@
const p2, 0x7f07005c
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationWidth(I)I
move-result p2
.line 58
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
@@ -145,6 +153,10 @@
const p2, 0x7f070062
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result p2
.line 59
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
@@ -196,15 +196,13 @@
.line 78
iget-object v0, p0, Lcom/vk/core/fragments/b/a/ParentSupportFragmentManager;->c:Landroid/support/v4/app/FragmentTransaction;
invoke-static {v0}, Lru/vtosters/lite/utils/FragAnimationKit;->animateOpen(Landroid/support/v4/app/FragmentTransaction;)V
return-void
if-eqz v0, :cond_0
invoke-virtual {v0, p1, p2}, Landroid/support/v4/app/FragmentTransaction;->a(II)Landroid/support/v4/app/FragmentTransaction;
:cond_0
invoke-static {v0}, Lru/vtosters/lite/utils/FragAnimationKit;->animateOpen(Landroid/support/v4/app/FragmentTransaction;)V
return-void
.end method
@@ -114,7 +114,6 @@
goto :goto_0
:cond_2
const v0, 0x7f0a0ce9
@@ -170,7 +170,6 @@
.line 31
invoke-virtual {p0, p1, v0, v1, v2}, Lcom/vk/video/a/VideoMenuActionsBuilder;->a(IIII)V
:cond_8
const p1, 0x7f0a0bcf
@@ -296,13 +296,7 @@
.line 256
iget-object p1, p0, Lcom/vtosters/lite/b/VKBottomSheetDialog;->t:Landroid/widget/FrameLayout;
invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v1
const v2, 0x7f060278
invoke-static {v1, v2}, Landroid/support/v4/content/ContextCompat;->c(Landroid/content/Context;I)I
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundContent()I
move-result v1
@@ -87,6 +87,10 @@
const v0, 0x7f070062
invoke-static {v0}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result v0
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimension(I)F
move-result p1
@@ -157,6 +161,10 @@
const p2, 0x7f070062
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result p2
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimension(I)F
move-result p1
@@ -227,6 +235,10 @@
const p2, 0x7f070062
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result p2
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimension(I)F
move-result p1
@@ -300,6 +312,10 @@
const p2, 0x7f070062
invoke-static {p2}, Lru/vtosters/lite/utils/Themes;->getNavigationHeight(I)I
move-result p2
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimension(I)F
move-result p1