{"action":"created","comment":{"url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/comments/33906168","id":33906168,"diff_hunk":"@@ -1,124 +0,0 @@\n-package poojawins.lukesterlee.c4q.nyc.daybuilder;\n-\n-import android.app.Activity;\n-import android.app.Dialog;\n-import android.app.DialogFragment;\n-import android.content.Context;\n-import android.content.SharedPreferences;\n-import android.os.AsyncTask;\n-import android.os.Bundle;\n-import android.os.Handler;\n-import android.support.v7.app.AlertDialog;\n-import android.text.Editable;\n-import android.text.TextWatcher;\n-import android.view.LayoutInflater;\n-import android.view.View;\n-import android.widget.AdapterView;\n-import android.widget.ArrayAdapter;\n-import android.widget.EditText;\n-import android.widget.ListView;\n-\n-import java.util.List;\n-import java.util.Set;\n-import java.util.TreeSet;\n-\n-/**\n- * Created by Luke on 6/26/2015.\n- */\n-public class AddStockDialogFragment extends DialogFragment {\n-\n-    View mDialogView;\n-    EditText mEditText;\n-    ListView mListView;\n-    ArrayAdapter<String> adapter;\n-\n-    String userSearchInput = \"\";\n-\n-    AddDialogListener mListener;\n-    private static final int REQUEST_CODE_STOCK = 2;\n-    private static final String SHARED_PREFERENCES_STOCK_KEY = \"stock\";\n-\n-    private Runnable runnable = new Runnable() {\n-        @Override\n-        public void run() {\n-            userSearchInput = mEditText.getText().toString();\n-            new StockSearchTask().execute(userSearchInput);\n-        }\n-    };\n-\n-    private static final Handler handler = new Handler();\n-\n-    @Override\n-    public Dialog onCreateDialog(Bundle savedInstanceState) {\n-        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n-\n-        LayoutInflater inflater = getActivity().getLayoutInflater();\n-        mDialogView = inflater.inflate(R.layout.dialog_add_stock, null);\n-        mEditText = (EditText) mDialogView.findViewById(R.id.editText_stock);\n-        mListView = (ListView) mDialogView.findViewById(R.id.listView_dialog_stock);\n-        builder.setView(mDialogView);\n-\n-        return builder.create();\n-    }\n-\n-    @Override\n-    public void onResume() {\n-        super.onResume();\n-\n-        TextWatcher textWatcher = new TextWatcher() {","path":"app/src/main/java/poojawins/lukesterlee/c4q/nyc/daybuilder/AddStockDialogFragment.java","position":68,"original_position":68,"commit_id":"dc0562735f7705fec8664fd7e85375bb050c0ad0","original_commit_id":"dc0562735f7705fec8664fd7e85375bb050c0ad0","user":{"login":"Bucimis","id":1174698,"avatar_url":"https://avatars.githubusercontent.com/u/1174698?v=3","gravatar_id":"","url":"https://api.github.com/users/Bucimis","html_url":"https://github.com/Bucimis","followers_url":"https://api.github.com/users/Bucimis/followers","following_url":"https://api.github.com/users/Bucimis/following{/other_user}","gists_url":"https://api.github.com/users/Bucimis/gists{/gist_id}","starred_url":"https://api.github.com/users/Bucimis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bucimis/subscriptions","organizations_url":"https://api.github.com/users/Bucimis/orgs","repos_url":"https://api.github.com/users/Bucimis/repos","events_url":"https://api.github.com/users/Bucimis/events{/privacy}","received_events_url":"https://api.github.com/users/Bucimis/received_events","type":"User","site_admin":false},"body":"these classes could potentially be instantiated somewhere else to make onResume() easier to understand","created_at":"2015-07-06T05:01:11Z","updated_at":"2015-07-06T05:01:11Z","html_url":"https://github.com/lukesterlee/DayBuilder/pull/1#discussion_r33906168","pull_request_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/comments/33906168"},"html":{"href":"https://github.com/lukesterlee/DayBuilder/pull/1#discussion_r33906168"},"pull_request":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1","id":39208693,"html_url":"https://github.com/lukesterlee/DayBuilder/pull/1","diff_url":"https://github.com/lukesterlee/DayBuilder/pull/1.diff","patch_url":"https://github.com/lukesterlee/DayBuilder/pull/1.patch","issue_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/1","number":1,"state":"open","locked":false,"title":"my code part","user":{"login":"lukesterlee","id":9811551,"avatar_url":"https://avatars.githubusercontent.com/u/9811551?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesterlee","html_url":"https://github.com/lukesterlee","followers_url":"https://api.github.com/users/lukesterlee/followers","following_url":"https://api.github.com/users/lukesterlee/following{/other_user}","gists_url":"https://api.github.com/users/lukesterlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesterlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesterlee/subscriptions","organizations_url":"https://api.github.com/users/lukesterlee/orgs","repos_url":"https://api.github.com/users/lukesterlee/repos","events_url":"https://api.github.com/users/lukesterlee/events{/privacy}","received_events_url":"https://api.github.com/users/lukesterlee/received_events","type":"User","site_admin":false},"body":"Thank you so much!","created_at":"2015-07-04T14:44:19Z","updated_at":"2015-07-06T05:01:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50ac01994c5d9a607e0c73b31342c7dc97987320","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/1/comments","statuses_url":"https://api.github.com/repos/lukesterlee/DayBuilder/statuses/dc0562735f7705fec8664fd7e85375bb050c0ad0","head":{"label":"lukesterlee:codereview","ref":"codereview","sha":"dc0562735f7705fec8664fd7e85375bb050c0ad0","user":{"login":"lukesterlee","id":9811551,"avatar_url":"https://avatars.githubusercontent.com/u/9811551?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesterlee","html_url":"https://github.com/lukesterlee","followers_url":"https://api.github.com/users/lukesterlee/followers","following_url":"https://api.github.com/users/lukesterlee/following{/other_user}","gists_url":"https://api.github.com/users/lukesterlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesterlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesterlee/subscriptions","organizations_url":"https://api.github.com/users/lukesterlee/orgs","repos_url":"https://api.github.com/users/lukesterlee/repos","events_url":"https://api.github.com/users/lukesterlee/events{/privacy}","received_events_url":"https://api.github.com/users/lukesterlee/received_events","type":"User","site_admin":false},"repo":{"id":37812629,"name":"DayBuilder","full_name":"lukesterlee/DayBuilder","owner":{"login":"lukesterlee","id":9811551,"avatar_url":"https://avatars.githubusercontent.com/u/9811551?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesterlee","html_url":"https://github.com/lukesterlee","followers_url":"https://api.github.com/users/lukesterlee/followers","following_url":"https://api.github.com/users/lukesterlee/following{/other_user}","gists_url":"https://api.github.com/users/lukesterlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesterlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesterlee/subscriptions","organizations_url":"https://api.github.com/users/lukesterlee/orgs","repos_url":"https://api.github.com/users/lukesterlee/repos","events_url":"https://api.github.com/users/lukesterlee/events{/privacy}","received_events_url":"https://api.github.com/users/lukesterlee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukesterlee/DayBuilder","description":"C4Q Access Code 2.1 Unit 2 Final Project (Pooja, Luke)","fork":false,"url":"https://api.github.com/repos/lukesterlee/DayBuilder","forks_url":"https://api.github.com/repos/lukesterlee/DayBuilder/forks","keys_url":"https://api.github.com/repos/lukesterlee/DayBuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukesterlee/DayBuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukesterlee/DayBuilder/teams","hooks_url":"https://api.github.com/repos/lukesterlee/DayBuilder/hooks","issue_events_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/events{/number}","events_url":"https://api.github.com/repos/lukesterlee/DayBuilder/events","assignees_url":"https://api.github.com/repos/lukesterlee/DayBuilder/assignees{/user}","branches_url":"https://api.github.com/repos/lukesterlee/DayBuilder/branches{/branch}","tags_url":"https://api.github.com/repos/lukesterlee/DayBuilder/tags","blobs_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukesterlee/DayBuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/lukesterlee/DayBuilder/languages","stargazers_url":"https://api.github.com/repos/lukesterlee/DayBuilder/stargazers","contributors_url":"https://api.github.com/repos/lukesterlee/DayBuilder/contributors","subscribers_url":"https://api.github.com/repos/lukesterlee/DayBuilder/subscribers","subscription_url":"https://api.github.com/repos/lukesterlee/DayBuilder/subscription","commits_url":"https://api.github.com/repos/lukesterlee/DayBuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukesterlee/DayBuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukesterlee/DayBuilder/contents/{+path}","compare_url":"https://api.github.com/repos/lukesterlee/DayBuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukesterlee/DayBuilder/merges","archive_url":"https://api.github.com/repos/lukesterlee/DayBuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukesterlee/DayBuilder/downloads","issues_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues{/number}","pulls_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/lukesterlee/DayBuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/lukesterlee/DayBuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukesterlee/DayBuilder/labels{/name}","releases_url":"https://api.github.com/repos/lukesterlee/DayBuilder/releases{/id}","created_at":"2015-06-21T14:50:27Z","updated_at":"2015-07-02T01:51:41Z","pushed_at":"2015-07-04T14:44:19Z","git_url":"git://github.com/lukesterlee/DayBuilder.git","ssh_url":"git@github.com:lukesterlee/DayBuilder.git","clone_url":"https://github.com/lukesterlee/DayBuilder.git","svn_url":"https://github.com/lukesterlee/DayBuilder","homepage":null,"size":1197,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lukesterlee:master","ref":"master","sha":"9a29441dac710642689b5a089799feae5aa3231f","user":{"login":"lukesterlee","id":9811551,"avatar_url":"https://avatars.githubusercontent.com/u/9811551?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesterlee","html_url":"https://github.com/lukesterlee","followers_url":"https://api.github.com/users/lukesterlee/followers","following_url":"https://api.github.com/users/lukesterlee/following{/other_user}","gists_url":"https://api.github.com/users/lukesterlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesterlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesterlee/subscriptions","organizations_url":"https://api.github.com/users/lukesterlee/orgs","repos_url":"https://api.github.com/users/lukesterlee/repos","events_url":"https://api.github.com/users/lukesterlee/events{/privacy}","received_events_url":"https://api.github.com/users/lukesterlee/received_events","type":"User","site_admin":false},"repo":{"id":37812629,"name":"DayBuilder","full_name":"lukesterlee/DayBuilder","owner":{"login":"lukesterlee","id":9811551,"avatar_url":"https://avatars.githubusercontent.com/u/9811551?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesterlee","html_url":"https://github.com/lukesterlee","followers_url":"https://api.github.com/users/lukesterlee/followers","following_url":"https://api.github.com/users/lukesterlee/following{/other_user}","gists_url":"https://api.github.com/users/lukesterlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesterlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesterlee/subscriptions","organizations_url":"https://api.github.com/users/lukesterlee/orgs","repos_url":"https://api.github.com/users/lukesterlee/repos","events_url":"https://api.github.com/users/lukesterlee/events{/privacy}","received_events_url":"https://api.github.com/users/lukesterlee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukesterlee/DayBuilder","description":"C4Q Access Code 2.1 Unit 2 Final Project (Pooja, Luke)","fork":false,"url":"https://api.github.com/repos/lukesterlee/DayBuilder","forks_url":"https://api.github.com/repos/lukesterlee/DayBuilder/forks","keys_url":"https://api.github.com/repos/lukesterlee/DayBuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukesterlee/DayBuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukesterlee/DayBuilder/teams","hooks_url":"https://api.github.com/repos/lukesterlee/DayBuilder/hooks","issue_events_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/events{/number}","events_url":"https://api.github.com/repos/lukesterlee/DayBuilder/events","assignees_url":"https://api.github.com/repos/lukesterlee/DayBuilder/assignees{/user}","branches_url":"https://api.github.com/repos/lukesterlee/DayBuilder/branches{/branch}","tags_url":"https://api.github.com/repos/lukesterlee/DayBuilder/tags","blobs_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukesterlee/DayBuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/lukesterlee/DayBuilder/languages","stargazers_url":"https://api.github.com/repos/lukesterlee/DayBuilder/stargazers","contributors_url":"https://api.github.com/repos/lukesterlee/DayBuilder/contributors","subscribers_url":"https://api.github.com/repos/lukesterlee/DayBuilder/subscribers","subscription_url":"https://api.github.com/repos/lukesterlee/DayBuilder/subscription","commits_url":"https://api.github.com/repos/lukesterlee/DayBuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukesterlee/DayBuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukesterlee/DayBuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukesterlee/DayBuilder/contents/{+path}","compare_url":"https://api.github.com/repos/lukesterlee/DayBuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukesterlee/DayBuilder/merges","archive_url":"https://api.github.com/repos/lukesterlee/DayBuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukesterlee/DayBuilder/downloads","issues_url":"https://api.github.com/repos/lukesterlee/DayBuilder/issues{/number}","pulls_url":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/lukesterlee/DayBuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/lukesterlee/DayBuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukesterlee/DayBuilder/labels{/name}","releases_url":"https://api.github.com/repos/lukesterlee/DayBuilder/releases{/id}","created_at":"2015-06-21T14:50:27Z","updated_at":"2015-07-02T01:51:41Z","pushed_at":"2015-07-04T14:44:19Z","git_url":"git://github.com/lukesterlee/DayBuilder.git","ssh_url":"git@github.com:lukesterlee/DayBuilder.git","clone_url":"https://github.com/lukesterlee/DayBuilder.git","svn_url":"https://github.com/lukesterlee/DayBuilder","homepage":null,"size":1197,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1"},"html":{"href":"https://github.com/lukesterlee/DayBuilder/pull/1"},"issue":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/1"},"comments":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lukesterlee/DayBuilder/statuses/dc0562735f7705fec8664fd7e85375bb050c0ad0"}}}}