screenshot detect
This commit is contained in:
@@ -320,6 +320,10 @@ public class Preferences {
|
|||||||
return getBoolValue("podcastcatalog", false);
|
return getBoolValue("podcastcatalog", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean screenshotdetect() {
|
||||||
|
return getBoolValue("screenshotdetect", false);
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean checkupdates() {
|
public static boolean checkupdates() {
|
||||||
return getBoolValue("checkupdates", true) && isValidSignature();
|
return getBoolValue("checkupdates", true) && isValidSignature();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,11 @@
|
|||||||
android:title="Глобальный обход онлайна" />
|
android:title="Глобальный обход онлайна" />
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
<PreferenceCategory android:title="@string/privacy_vtl">
|
<PreferenceCategory android:title="@string/privacy_vtl">
|
||||||
|
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||||
|
android:defaultValue="false"
|
||||||
|
android:key="screenshotdetect"
|
||||||
|
android:summary="Отключить уведомление о том, что вы сделали скриншот"
|
||||||
|
android:title="Отключить детект скриншотов" />
|
||||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
android:key="awayphp"
|
android:key="awayphp"
|
||||||
|
|||||||
@@ -181,7 +181,15 @@
|
|||||||
.method public final a()V
|
.method public final a()V
|
||||||
.locals 8
|
.locals 8
|
||||||
|
|
||||||
.line 2
|
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->screenshotdetect()Z
|
||||||
|
|
||||||
|
move-result v0
|
||||||
|
|
||||||
|
if-eqz v0, :cond_228
|
||||||
|
|
||||||
|
return-void
|
||||||
|
|
||||||
|
:cond_228
|
||||||
invoke-direct {p0}, Lcom/vk/im/ui/utils/DialogScreenshotTracker;->c()Lcom/vk/core/screenshot/ScreenshotDetector;
|
invoke-direct {p0}, Lcom/vk/im/ui/utils/DialogScreenshotTracker;->c()Lcom/vk/core/screenshot/ScreenshotDetector;
|
||||||
|
|
||||||
move-result-object v0
|
move-result-object v0
|
||||||
|
|||||||
Reference in New Issue
Block a user