Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Issues no #1158 Remove Profile pic btn from profile fragment. #1343

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public String getUrl() {
public String getSelfServiceUrl() {
return PROTOCOL_HTTPS + API_ENDPOINT_SELF + API_PATH_SELF;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public class ProfileFragment extends BaseFragment implements BaseHomeContract.Pr

BaseHomeContract.ProfilePresenter mProfilePresenter;

@BindView(R.id.iv_user_image)
@BindView(R.id.iv_user_image_two)
ImageView ivUserImage;

@BindView(R.id.tv_user_name)
@BindView(R.id.tv_user_name_two)
TextView tvUserName;

@BindView(R.id.nsv_profile_bottom_sheet_dialog)
Expand Down Expand Up @@ -124,7 +124,8 @@ public void setPresenter(BaseHomeContract.ProfilePresenter presenter) {
this.mProfilePresenter = presenter;
}

@OnClick(R.id.iv_user_image)
// @OnClick(R.id.iv_user_image_two)
@OnClick(R.id.iv_user_image_two)
public void onUserImageEditClicked() {
if (getActivity() != null) {
Intent i = new Intent(getActivity(), EditProfileActivity.class);
Expand Down
2 changes: 1 addition & 1 deletion mifospay/src/main/res/layout/fragment_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<include layout="@layout/profile_username_and_image"
<include layout="@layout/profile_username"
android:layout_marginTop="@dimen/marginTopUserProfile"
android:layout_height="wrap_content"
android:layout_width="match_parent" />
Expand Down
28 changes: 28 additions & 0 deletions mifospay/src/main/res/layout/profile_username.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">

<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/iv_user_image_two"
android:layout_width="@dimen/user_profile_image_size"
android:layout_height="@dimen/user_profile_image_size"
android:layout_gravity="center_horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_user_name_two"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/marginItemsInSectionSmall"
app:fontFamily="@font/roboto_medium"
android:textColor="@color/colorBlack87"
android:textSize="@dimen/textH6"
app:layout_constraintEnd_toEndOf="@+id/iv_user_image_two"
app:layout_constraintStart_toStartOf="@+id/iv_user_image_two"
app:layout_constraintTop_toBottomOf="@+id/iv_user_image_two" />

</android.support.constraint.ConstraintLayout>