瀏覽代碼

Update method

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 年之前
父節點
當前提交
5dcf81b268
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/nextcloud/talk/application/NextcloudTalkApplication.java

+ 1 - 1
app/src/main/java/com/nextcloud/talk/application/NextcloudTalkApplication.java

@@ -152,7 +152,7 @@ public class NextcloudTalkApplication extends MultiDexApplication implements Pro
                         ".ProtectAppControl");
                 Method secondaryMethod = secondaryEnclosingClass.getMethod("getInstance", Context.class);
                 Object object = secondaryMethod.invoke(null, getApplicationContext());
-                Method thirdMethod = secondaryEnclosingClass.getMethod("setNoProtect", List.class);
+                Method thirdMethod = secondaryEnclosingClass.getMethod("setProtect", List.class);
                 List<String> packageNames = new ArrayList<>();
                 packageNames.add(getPackageName());
                 thirdMethod.invoke(object, packageNames);