Skip to content

Commit

Permalink
Some color fixes + upped default app version
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlbo committed May 10, 2022
1 parent 0ed057d commit e992203
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
11 changes: 7 additions & 4 deletions app/src/main/java/ru/vtosters/lite/utils/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
public class Preferences {
public static String VERSIONNAME = "Beta";

public static Integer VKBUILD = 12116; // 3439 orig
public static String VKVER = "7.24"; // 5.29 orig

public static void init(Application application) {
setupFilters();
fixGapps();
Expand Down Expand Up @@ -313,13 +316,13 @@ public static boolean vkme_msg() {
}

public static String VKVersion() {
String string = getPreferences().getString("vkversion", "");
return !string.isEmpty() ? string : "5.29";
String string = getPreferences().getString("vkver", "");
return !string.isEmpty() ? string : VKVER;
}

public static int VKVersionBuild() {
String string = getPreferences().getString("vkversionbuild", "");
return !string.isEmpty() ? Integer.parseInt(string) : 3439;
String string = getPreferences().getString("vkbuild", "");
return !string.isEmpty() ? Integer.parseInt(string) : VKBUILD;
}

public static long VKVersionBuildLong() {
Expand Down
10 changes: 5 additions & 5 deletions smali/res/layout-sw600dp/vkim_dialog_bar.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="#fffafbfc"
<FrameLayout android:background="?tabbar_background"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -27,7 +27,7 @@

<com.vk.im.ui.views.span.SpanPressableTextView
android:textSize="14.0sp"
android:textColor="#ff71757a"
android:textColor="?text_primary"
android:ellipsize="end"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"
Expand Down Expand Up @@ -56,13 +56,13 @@
android:layout_height="48.0dip"
android:src="@drawable/ic_cancel_24"
android:scaleType="centerInside"
android:tint="@color/light_gray"
android:tint="?text_primary"
android:contentDescription="@null" />
</LinearLayout>

<TextView
android:textSize="14.0sp"
android:textColor="#ff71757a"
android:textColor="?text_primary"
android:ellipsize="end"
android:layout_gravity="start|center"
android:id="@id/loading"
Expand All @@ -77,7 +77,7 @@

<TextView
android:textSize="14.0sp"
android:textColor="#ff71757a"
android:textColor="?text_primary"
android:ellipsize="end"
android:layout_gravity="start|center"
android:id="@id/error"
Expand Down
4 changes: 2 additions & 2 deletions smali/res/layout/vkim_dialog_bar.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="#fffafbfc"
<FrameLayout android:background="?tabbar_background"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down Expand Up @@ -64,7 +64,7 @@
android:layout_marginTop="4.0dip"
android:src="@drawable/ic_cancel_24"
android:scaleType="centerInside"
android:tint="@color/light_gray"
android:tint="?text_primary"
android:contentDescription="@null" />
</LinearLayout>

Expand Down
8 changes: 4 additions & 4 deletions smali/res/xml/preferences_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
android:summary="@string/benchapisummary"
android:title="@string/benchapi" />
<EditTextPreference
android:defaultValue="5.29"
android:key="vkversion"
android:defaultValue="7.24"
android:key="vkver"
android:summary="Требуется перезапуск"
android:title="Подмена версии ВК" />
<EditTextPreference
android:defaultValue="3439"
android:key="vkversionbuild"
android:defaultValue="12116"
android:key="vkbuild"
android:summary="Требуется перезапуск"
android:title="Подмена версии билда ВК" />
</PreferenceCategory>
Expand Down

0 comments on commit e992203

Please sign in to comment.