some pic fixes
This commit is contained in:
@@ -44,7 +44,6 @@ public class TogglesHook{
|
||||
case FEATURE_ML_FEATURES:
|
||||
case FEATURE_ML_MODELS_LOADING:
|
||||
case FEATURE_MONEY_TRANSFERS_VKPAY:
|
||||
case FEATURE_MOZJPEG:
|
||||
case FEATURE_MUSIC_ARTIST_CATALOG:
|
||||
case FEATURE_MUSIC_NEW_CATALOG:
|
||||
case FEATURE_NARRATIVE_SNIPPET_TYPE:
|
||||
|
||||
@@ -362,8 +362,9 @@ public class Preferences{
|
||||
}
|
||||
|
||||
public static int compress(int origquality){
|
||||
if (getBoolValue("shakal", false)) return 5;
|
||||
if (!getBoolValue("compressPhotos", true)) return 100;
|
||||
if (!getBoolValue("compressPhotos", true)) {
|
||||
return 100;
|
||||
}
|
||||
return origquality;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,10 +45,6 @@
|
||||
android:defaultValue="true"
|
||||
android:key="useNewSettings"
|
||||
android:title="Use New Settings" />
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="shakal"
|
||||
android:title="shakalish pikchi da" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/vk_fix_music_other">
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
|
||||
@@ -2741,10 +2741,6 @@
|
||||
|
||||
const/16 v2, 0x5a
|
||||
|
||||
invoke-static {v2}, Lru/vtosters/lite/utils/Preferences;->compress(I)I
|
||||
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {p1, v1, v2, v0}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
|
||||
|
||||
.line 9
|
||||
|
||||
@@ -591,6 +591,10 @@
|
||||
|
||||
const/16 p3, 0x64
|
||||
|
||||
invoke-static {p3}, Lru/vtosters/lite/utils/Preferences;->compress(I)I
|
||||
|
||||
move-result p3
|
||||
|
||||
.line 6
|
||||
invoke-virtual {v7, v1, p3, v0}, Landroid/graphics/YuvImage;->compressToJpeg(Landroid/graphics/Rect;ILjava/io/OutputStream;)Z
|
||||
|
||||
|
||||
Reference in New Issue
Block a user