Added password change functions.
This commit is contained in:
@@ -6,6 +6,7 @@ import android.net.Uri;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.app.Fragment;
|
import android.app.Fragment;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -21,6 +22,8 @@ import com.google.firebase.storage.FirebaseStorage;
|
|||||||
import com.google.firebase.storage.StorageReference;
|
import com.google.firebase.storage.StorageReference;
|
||||||
import com.google.firebase.auth.FirebaseAuth;
|
import com.google.firebase.auth.FirebaseAuth;
|
||||||
|
|
||||||
|
import static android.content.ContentValues.TAG;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple {@link Fragment} subclass.
|
* A simple {@link Fragment} subclass.
|
||||||
* Activities that contain this fragment must implement the
|
* Activities that contain this fragment must implement the
|
||||||
@@ -39,7 +42,7 @@ public class ProfileFragment extends Fragment implements View.OnClickListener{
|
|||||||
private String mParam1;
|
private String mParam1;
|
||||||
private String mParam2;
|
private String mParam2;
|
||||||
|
|
||||||
protected Button profilePicButton;
|
protected Button profilePicButton, changePwdButton;
|
||||||
|
|
||||||
private OnFragmentInteractionListener mListener;
|
private OnFragmentInteractionListener mListener;
|
||||||
|
|
||||||
@@ -88,11 +91,13 @@ public class ProfileFragment extends Fragment implements View.OnClickListener{
|
|||||||
protected void findViews(View view) {
|
protected void findViews(View view) {
|
||||||
profilePicButton = (Button) view.findViewById(R.id.profile_pic_button);
|
profilePicButton = (Button) view.findViewById(R.id.profile_pic_button);
|
||||||
profilePicture = (ImageView) view.findViewById(R.id.imageView_profile_picture);
|
profilePicture = (ImageView) view.findViewById(R.id.imageView_profile_picture);
|
||||||
|
changePwdButton = (Button) view.findViewById(R.id.change_psw_button);
|
||||||
bindOnClick();
|
bindOnClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void bindOnClick() {
|
protected void bindOnClick() {
|
||||||
profilePicButton.setOnClickListener(this);
|
profilePicButton.setOnClickListener(this);
|
||||||
|
changePwdButton.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -122,8 +127,8 @@ public class ProfileFragment extends Fragment implements View.OnClickListener{
|
|||||||
case R.id.profile_pic_button:
|
case R.id.profile_pic_button:
|
||||||
profilePicOnClick();
|
profilePicOnClick();
|
||||||
break;
|
break;
|
||||||
case R.id.logout_button:
|
case R.id.change_psw_button:
|
||||||
// logOutOnClick();
|
changePwdOnClick();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -133,6 +138,10 @@ public class ProfileFragment extends Fragment implements View.OnClickListener{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void changePwdOnClick() {
|
||||||
|
Log.d(TAG, "changePwdOnClick: YEAAAAAAAAAAAAAAY");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user