{"action":"created","comment":{"url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/comments/56772396","id":56772396,"diff_hunk":"@@ -83,12 +90,20 @@ public LockView(Context context, String packageName, String activityName) {\n         mActivityName = activityName;\n \n         mLockingType = getPreferencesKeysPerApp(getContext()).getString(mPackageName, getPrefs().getString(Common.LOCKING_TYPE, \"\"));\n-\n-        if (getPreferencesKeysPerApp(getContext()).contains(mPackageName)) {\n-            mPassword = getPreferencesKeysPerApp(getContext()).getString(mPackageName + Common.APP_KEY_PREFERENCE, null);\n-        } else\n-            mPassword = getPreferencesKeys(getContext()).getString(Common.KEY_PREFERENCE, \"\");\n-\n+        Log.e(LockView.class.getName(), mLockingType);\n+        if (mLockingType.equals(Common.PREF_VALUE_GESTURE)) {\n+            if (getPreferencesKeysPerApp(getContext()).contains(mPackageName))\n+                mPassword = mPackageName + Common.APP_KEY_GESTURE;\n+            else\n+                mPassword = Common.MASTER_GESTURE_NAME;\n+            }\n+        else {\n+            if (getPreferencesKeysPerApp(getContext()).contains(mPackageName))\n+                mPassword = getPreferencesKeysPerApp(getContext()).getString(mPackageName + Common.APP_KEY_PREFERENCE, null);\n+            else\n+                mPassword = getPreferencesKeys(getContext()).getString(Common.KEY_PREFERENCE, \"\");\n+        }\n+        Log.e(LockView.class.getName(), mPassword);","path":"app/src/main/java/de/Maxr1998/xposed/maxlock/ui/lockscreen/LockView.java","position":51,"original_position":51,"commit_id":"37e91071dc7d501d6e11d4ef43350553ef4d4ef8","original_commit_id":"37e91071dc7d501d6e11d4ef43350553ef4d4ef8","user":{"login":"Maxr1998","id":5903699,"avatar_url":"https://avatars.githubusercontent.com/u/5903699?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxr1998","html_url":"https://github.com/Maxr1998","followers_url":"https://api.github.com/users/Maxr1998/followers","following_url":"https://api.github.com/users/Maxr1998/following{/other_user}","gists_url":"https://api.github.com/users/Maxr1998/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxr1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxr1998/subscriptions","organizations_url":"https://api.github.com/users/Maxr1998/orgs","repos_url":"https://api.github.com/users/Maxr1998/repos","events_url":"https://api.github.com/users/Maxr1998/events{/privacy}","received_events_url":"https://api.github.com/users/Maxr1998/received_events","type":"User","site_admin":false},"body":"Could you remove logging th password nd locking type, please?","created_at":"2016-03-20T21:22:02Z","updated_at":"2016-03-20T21:22:02Z","html_url":"https://github.com/Maxr1998/MaxLock/pull/81#discussion_r56772396","pull_request_url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/comments/56772396"},"html":{"href":"https://github.com/Maxr1998/MaxLock/pull/81#discussion_r56772396"},"pull_request":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81","id":62182572,"html_url":"https://github.com/Maxr1998/MaxLock/pull/81","diff_url":"https://github.com/Maxr1998/MaxLock/pull/81.diff","patch_url":"https://github.com/Maxr1998/MaxLock/pull/81.patch","issue_url":"https://api.github.com/repos/Maxr1998/MaxLock/issues/81","number":81,"state":"open","locked":false,"title":"Add gesture locking","user":{"login":"Rijul-Ahuja","id":7863933,"avatar_url":"https://avatars.githubusercontent.com/u/7863933?v=3","gravatar_id":"","url":"https://api.github.com/users/Rijul-Ahuja","html_url":"https://github.com/Rijul-Ahuja","followers_url":"https://api.github.com/users/Rijul-Ahuja/followers","following_url":"https://api.github.com/users/Rijul-Ahuja/following{/other_user}","gists_url":"https://api.github.com/users/Rijul-Ahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rijul-Ahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rijul-Ahuja/subscriptions","organizations_url":"https://api.github.com/users/Rijul-Ahuja/orgs","repos_url":"https://api.github.com/users/Rijul-Ahuja/repos","events_url":"https://api.github.com/users/Rijul-Ahuja/events{/privacy}","received_events_url":"https://api.github.com/users/Rijul-Ahuja/received_events","type":"User","site_admin":false},"body":"Hi Max,\r\n\r\nAs discussed on XDA, please check this pull request. Some points to note are \r\n\r\n- In translated strings.xml, I have added the untranslated strings directly, to allow compilation. \r\n- I have used a non AOSP GestureOverlayView.java because the AOSP version clears the gesture after it is drawn.\r\n\r\nYou may want to refactor some stuff as per your preferences, but I have tried to do the best I could. Thanks for your time.","created_at":"2016-03-09T05:44:25Z","updated_at":"2016-03-20T21:22:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55f2a7eb248324e02ae8accddbdcabf4cde99236","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81/commits","review_comments_url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81/comments","review_comment_url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Maxr1998/MaxLock/issues/81/comments","statuses_url":"https://api.github.com/repos/Maxr1998/MaxLock/statuses/37e91071dc7d501d6e11d4ef43350553ef4d4ef8","head":{"label":"Rijul-Ahuja:master","ref":"master","sha":"37e91071dc7d501d6e11d4ef43350553ef4d4ef8","user":{"login":"Rijul-Ahuja","id":7863933,"avatar_url":"https://avatars.githubusercontent.com/u/7863933?v=3","gravatar_id":"","url":"https://api.github.com/users/Rijul-Ahuja","html_url":"https://github.com/Rijul-Ahuja","followers_url":"https://api.github.com/users/Rijul-Ahuja/followers","following_url":"https://api.github.com/users/Rijul-Ahuja/following{/other_user}","gists_url":"https://api.github.com/users/Rijul-Ahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rijul-Ahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rijul-Ahuja/subscriptions","organizations_url":"https://api.github.com/users/Rijul-Ahuja/orgs","repos_url":"https://api.github.com/users/Rijul-Ahuja/repos","events_url":"https://api.github.com/users/Rijul-Ahuja/events{/privacy}","received_events_url":"https://api.github.com/users/Rijul-Ahuja/received_events","type":"User","site_admin":false},"repo":{"id":53345462,"name":"MaxLock","full_name":"Rijul-Ahuja/MaxLock","owner":{"login":"Rijul-Ahuja","id":7863933,"avatar_url":"https://avatars.githubusercontent.com/u/7863933?v=3","gravatar_id":"","url":"https://api.github.com/users/Rijul-Ahuja","html_url":"https://github.com/Rijul-Ahuja","followers_url":"https://api.github.com/users/Rijul-Ahuja/followers","following_url":"https://api.github.com/users/Rijul-Ahuja/following{/other_user}","gists_url":"https://api.github.com/users/Rijul-Ahuja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rijul-Ahuja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rijul-Ahuja/subscriptions","organizations_url":"https://api.github.com/users/Rijul-Ahuja/orgs","repos_url":"https://api.github.com/users/Rijul-Ahuja/repos","events_url":"https://api.github.com/users/Rijul-Ahuja/events{/privacy}","received_events_url":"https://api.github.com/users/Rijul-Ahuja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rijul-Ahuja/MaxLock","description":"This is an Xposed Framework App lock module.","fork":true,"url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock","forks_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/forks","keys_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/teams","hooks_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/hooks","issue_events_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/issues/events{/number}","events_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/events","assignees_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/assignees{/user}","branches_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/branches{/branch}","tags_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/tags","blobs_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/statuses/{sha}","languages_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/languages","stargazers_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/stargazers","contributors_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/contributors","subscribers_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/subscribers","subscription_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/subscription","commits_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/contents/{+path}","compare_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/merges","archive_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/downloads","issues_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/issues{/number}","pulls_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/pulls{/number}","milestones_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/milestones{/number}","notifications_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/labels{/name}","releases_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/releases{/id}","deployments_url":"https://api.github.com/repos/Rijul-Ahuja/MaxLock/deployments","created_at":"2016-03-07T17:38:47Z","updated_at":"2016-03-07T17:38:49Z","pushed_at":"2016-03-09T05:38:47Z","git_url":"git://github.com/Rijul-Ahuja/MaxLock.git","ssh_url":"git@github.com:Rijul-Ahuja/MaxLock.git","clone_url":"https://github.com/Rijul-Ahuja/MaxLock.git","svn_url":"https://github.com/Rijul-Ahuja/MaxLock","homepage":"http://maxlock.maxr1998.de","size":3677,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Maxr1998:master","ref":"master","sha":"b6aea3c40c27789050c9d0a26e0e08e2a922b762","user":{"login":"Maxr1998","id":5903699,"avatar_url":"https://avatars.githubusercontent.com/u/5903699?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxr1998","html_url":"https://github.com/Maxr1998","followers_url":"https://api.github.com/users/Maxr1998/followers","following_url":"https://api.github.com/users/Maxr1998/following{/other_user}","gists_url":"https://api.github.com/users/Maxr1998/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxr1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxr1998/subscriptions","organizations_url":"https://api.github.com/users/Maxr1998/orgs","repos_url":"https://api.github.com/users/Maxr1998/repos","events_url":"https://api.github.com/users/Maxr1998/events{/privacy}","received_events_url":"https://api.github.com/users/Maxr1998/received_events","type":"User","site_admin":false},"repo":{"id":26714505,"name":"MaxLock","full_name":"Maxr1998/MaxLock","owner":{"login":"Maxr1998","id":5903699,"avatar_url":"https://avatars.githubusercontent.com/u/5903699?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxr1998","html_url":"https://github.com/Maxr1998","followers_url":"https://api.github.com/users/Maxr1998/followers","following_url":"https://api.github.com/users/Maxr1998/following{/other_user}","gists_url":"https://api.github.com/users/Maxr1998/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxr1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxr1998/subscriptions","organizations_url":"https://api.github.com/users/Maxr1998/orgs","repos_url":"https://api.github.com/users/Maxr1998/repos","events_url":"https://api.github.com/users/Maxr1998/events{/privacy}","received_events_url":"https://api.github.com/users/Maxr1998/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Maxr1998/MaxLock","description":"This is an Xposed Framework App lock module.","fork":false,"url":"https://api.github.com/repos/Maxr1998/MaxLock","forks_url":"https://api.github.com/repos/Maxr1998/MaxLock/forks","keys_url":"https://api.github.com/repos/Maxr1998/MaxLock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maxr1998/MaxLock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maxr1998/MaxLock/teams","hooks_url":"https://api.github.com/repos/Maxr1998/MaxLock/hooks","issue_events_url":"https://api.github.com/repos/Maxr1998/MaxLock/issues/events{/number}","events_url":"https://api.github.com/repos/Maxr1998/MaxLock/events","assignees_url":"https://api.github.com/repos/Maxr1998/MaxLock/assignees{/user}","branches_url":"https://api.github.com/repos/Maxr1998/MaxLock/branches{/branch}","tags_url":"https://api.github.com/repos/Maxr1998/MaxLock/tags","blobs_url":"https://api.github.com/repos/Maxr1998/MaxLock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maxr1998/MaxLock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maxr1998/MaxLock/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maxr1998/MaxLock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maxr1998/MaxLock/statuses/{sha}","languages_url":"https://api.github.com/repos/Maxr1998/MaxLock/languages","stargazers_url":"https://api.github.com/repos/Maxr1998/MaxLock/stargazers","contributors_url":"https://api.github.com/repos/Maxr1998/MaxLock/contributors","subscribers_url":"https://api.github.com/repos/Maxr1998/MaxLock/subscribers","subscription_url":"https://api.github.com/repos/Maxr1998/MaxLock/subscription","commits_url":"https://api.github.com/repos/Maxr1998/MaxLock/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maxr1998/MaxLock/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maxr1998/MaxLock/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maxr1998/MaxLock/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maxr1998/MaxLock/contents/{+path}","compare_url":"https://api.github.com/repos/Maxr1998/MaxLock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maxr1998/MaxLock/merges","archive_url":"https://api.github.com/repos/Maxr1998/MaxLock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maxr1998/MaxLock/downloads","issues_url":"https://api.github.com/repos/Maxr1998/MaxLock/issues{/number}","pulls_url":"https://api.github.com/repos/Maxr1998/MaxLock/pulls{/number}","milestones_url":"https://api.github.com/repos/Maxr1998/MaxLock/milestones{/number}","notifications_url":"https://api.github.com/repos/Maxr1998/MaxLock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maxr1998/MaxLock/labels{/name}","releases_url":"https://api.github.com/repos/Maxr1998/MaxLock/releases{/id}","deployments_url":"https://api.github.com/repos/Maxr1998/MaxLock/deployments","created_at":"2014-11-16T13:13:30Z","updated_at":"2016-03-03T00:02:43Z","pushed_at":"2016-03-20T21:18:24Z","git_url":"git://github.com/Maxr1998/MaxLock.git","ssh_url":"git@github.com:Maxr1998/MaxLock.git","clone_url":"https://github.com/Maxr1998/MaxLock.git","svn_url":"https://github.com/Maxr1998/MaxLock","homepage":"http://maxlock.maxr1998.de","size":3762,"stargazers_count":20,"watchers_count":20,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":10,"forks":17,"open_issues":10,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81"},"html":{"href":"https://github.com/Maxr1998/MaxLock/pull/81"},"issue":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/issues/81"},"comments":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/Maxr1998/MaxLock/statuses/37e91071dc7d501d6e11d4ef43350553ef4d4ef8"}}}}