diff --git a/app/src/main/java/com/example/android/friendlychat/MainActivity.java b/app/src/main/java/com/example/android/friendlychat/MainActivity.java index a2cca9e..5f92764 100644 --- a/app/src/main/java/com/example/android/friendlychat/MainActivity.java +++ b/app/src/main/java/com/example/android/friendlychat/MainActivity.java @@ -96,23 +96,7 @@ protected void onCreate(Bundle savedInstanceState) { mMessageAdapter = new MessageAdapter(this, R.layout.item_message, friendlyMessages); mMessageListView.setAdapter(mMessageAdapter); - // Initialize progress bar - mProgressBar.setVisibility(ProgressBar.INVISIBLE); - - // ImagePickerButton shows an image picker to upload a image for a message - mPhotoPickerButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - Intent intent = new Intent(Intent.ACTION_GET_CONTENT); - intent.setType("image/jpeg"); - intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true); - startActivityForResult(Intent.createChooser(intent, "Complete action using"), RC_PHOTO_PICKER); - } - }); - - // Enable Send button when there's text to send - mMessageEditText.addTextChangedListener(new TextWatcher() { - @Override + //w;kdawkdpowodkpoawdask;oasdpo public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { }