{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/android/pulls/comments/51735579","id":51735579,"diff_hunk":"@@ -0,0 +1,177 @@\n+/**\n+ *   ownCloud Android client application\n+ *\n+ *   @author masensio\n+ *   Copyright (C) 2016 ownCloud Inc.\n+ *\n+ *   This program is free software: you can redistribute it and/or modify\n+ *   it under the terms of the GNU General Public License version 2,\n+ *   as published by the Free Software Foundation.\n+ *\n+ *   This program is distributed in the hope that it will be useful,\n+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *   GNU General Public License for more details.\n+ *\n+ *   You should have received a copy of the GNU General Public License\n+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ */\n+\n+package com.owncloud.android.ui.activity;\n+\n+import android.content.SharedPreferences;\n+import android.os.AsyncTask;\n+import android.os.Bundle;\n+import android.preference.PreferenceManager;\n+import android.support.v7.app.ActionBar;\n+import android.support.v7.app.AppCompatActivity;\n+import android.view.MenuItem;\n+import android.view.View;\n+import android.widget.Button;\n+import android.widget.TextView;\n+import android.widget.Toast;\n+\n+import com.owncloud.android.R;\n+import com.owncloud.android.lib.common.utils.Log_OC;\n+\n+import java.io.File;\n+\n+public class ManageSpaceActivity extends AppCompatActivity {\n+\n+    private static final String TAG = ManageSpaceActivity.class.getSimpleName();\n+\n+    private static final String LIB_FOLDER = \"lib\";\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_manage_space);\n+\n+        ActionBar actionBar = getSupportActionBar();\n+        actionBar.setDisplayHomeAsUpEnabled(true);\n+        actionBar.setTitle(R.string.manage_space_title);\n+\n+        TextView descriptionTextView = (TextView) findViewById(R.id.general_description);\n+        descriptionTextView.setText(getString(R.string.manage_space_description, getString(R.string.app_name)));\n+\n+        Button clearDataButton = (Button) findViewById(R.id.clearDataButton);\n+        clearDataButton.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View v) {\n+                ClearDataAsynTask clearDataTask = new ClearDataAsynTask();","path":"src/com/owncloud/android/ui/activity/ManageSpaceActivity.java","position":62,"original_position":62,"commit_id":"9fd38ca0dd90e9e25e6d6d2d135b0e8ef3f969e0","original_commit_id":"dc2fdb9744eb69e1739f470d4b48e5441b0249be","user":{"login":"davivel","id":2225614,"avatar_url":"https://avatars.githubusercontent.com/u/2225614?v=3","gravatar_id":"","url":"https://api.github.com/users/davivel","html_url":"https://github.com/davivel","followers_url":"https://api.github.com/users/davivel/followers","following_url":"https://api.github.com/users/davivel/following{/other_user}","gists_url":"https://api.github.com/users/davivel/gists{/gist_id}","starred_url":"https://api.github.com/users/davivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davivel/subscriptions","organizations_url":"https://api.github.com/users/davivel/orgs","repos_url":"https://api.github.com/users/davivel/repos","events_url":"https://api.github.com/users/davivel/events{/privacy}","received_events_url":"https://api.github.com/users/davivel/received_events","type":"User","site_admin":false},"body":"This is not being just fixed. We are not just ignoring the comments in the review.\r\n\r\n@jesmrec, let's add a test case to click several times on the button without waiting for response, and see what happens. If there's any problem, will add some visual feedback of progress.\r\n\r\n","created_at":"2016-02-03T15:28:26Z","updated_at":"2016-02-03T15:28:26Z","html_url":"https://github.com/owncloud/android/pull/1461#discussion_r51735579","pull_request_url":"https://api.github.com/repos/owncloud/android/pulls/1461","_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments/51735579"},"html":{"href":"https://github.com/owncloud/android/pull/1461#discussion_r51735579"},"pull_request":{"href":"https://api.github.com/repos/owncloud/android/pulls/1461"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/android/pulls/1461","id":57976250,"html_url":"https://github.com/owncloud/android/pull/1461","diff_url":"https://github.com/owncloud/android/pull/1461.diff","patch_url":"https://github.com/owncloud/android/pull/1461.patch","issue_url":"https://api.github.com/repos/owncloud/android/issues/1461","number":1461,"state":"open","locked":false,"title":"Manage space activity","user":{"login":"masensio","id":3862330,"avatar_url":"https://avatars.githubusercontent.com/u/3862330?v=3","gravatar_id":"","url":"https://api.github.com/users/masensio","html_url":"https://github.com/masensio","followers_url":"https://api.github.com/users/masensio/followers","following_url":"https://api.github.com/users/masensio/following{/other_user}","gists_url":"https://api.github.com/users/masensio/gists{/gist_id}","starred_url":"https://api.github.com/users/masensio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masensio/subscriptions","organizations_url":"https://api.github.com/users/masensio/orgs","repos_url":"https://api.github.com/users/masensio/repos","events_url":"https://api.github.com/users/masensio/events{/privacy}","received_events_url":"https://api.github.com/users/masensio/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-02T11:52:31Z","updated_at":"2016-02-03T15:28:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88a8e6d9d6fde2e26ac194d2df1b67a81b0b4e5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/android/pulls/1461/commits","review_comments_url":"https://api.github.com/repos/owncloud/android/pulls/1461/comments","review_comment_url":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/android/issues/1461/comments","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/9fd38ca0dd90e9e25e6d6d2d135b0e8ef3f969e0","head":{"label":"owncloud:manage_space_activity","ref":"manage_space_activity","sha":"9fd38ca0dd90e9e25e6d6d2d135b0e8ef3f969e0","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":"The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2016-02-03T14:55:39Z","pushed_at":"2016-02-03T15:03:31Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":null,"size":128406,"stargazers_count":1329,"watchers_count":1329,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1485,"mirror_url":null,"open_issues_count":379,"forks":1485,"open_issues":379,"watchers":1329,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"c8dcf8b7ac204f24ad8d4b1e653e08f98198b310","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550567,"name":"android","full_name":"owncloud/android","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/android","description":"The ownCloud Android App","fork":false,"url":"https://api.github.com/repos/owncloud/android","forks_url":"https://api.github.com/repos/owncloud/android/forks","keys_url":"https://api.github.com/repos/owncloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/android/teams","hooks_url":"https://api.github.com/repos/owncloud/android/hooks","issue_events_url":"https://api.github.com/repos/owncloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/android/events","assignees_url":"https://api.github.com/repos/owncloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/android/tags","blobs_url":"https://api.github.com/repos/owncloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/android/languages","stargazers_url":"https://api.github.com/repos/owncloud/android/stargazers","contributors_url":"https://api.github.com/repos/owncloud/android/contributors","subscribers_url":"https://api.github.com/repos/owncloud/android/subscribers","subscription_url":"https://api.github.com/repos/owncloud/android/subscription","commits_url":"https://api.github.com/repos/owncloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/android/merges","archive_url":"https://api.github.com/repos/owncloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/android/downloads","issues_url":"https://api.github.com/repos/owncloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/android/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/android/deployments","created_at":"2012-08-25T10:35:56Z","updated_at":"2016-02-03T14:55:39Z","pushed_at":"2016-02-03T15:03:31Z","git_url":"git://github.com/owncloud/android.git","ssh_url":"git@github.com:owncloud/android.git","clone_url":"https://github.com/owncloud/android.git","svn_url":"https://github.com/owncloud/android","homepage":null,"size":128406,"stargazers_count":1329,"watchers_count":1329,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1485,"mirror_url":null,"open_issues_count":379,"forks":1485,"open_issues":379,"watchers":1329,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/android/pulls/1461"},"html":{"href":"https://github.com/owncloud/android/pull/1461"},"issue":{"href":"https://api.github.com/repos/owncloud/android/issues/1461"},"comments":{"href":"https://api.github.com/repos/owncloud/android/issues/1461/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/android/pulls/1461/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/android/pulls/1461/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/android/statuses/9fd38ca0dd90e9e25e6d6d2d135b0e8ef3f969e0"}}}}