2019-06-03 23:25:05 +02:00
|
|
|
package org.mian.gitnex.fragments;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.Nullable;
|
2021-01-26 16:10:31 +01:00
|
|
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
2021-08-02 20:04:33 +02:00
|
|
|
import org.mian.gitnex.activities.MyProfileEmailActivity;
|
2021-01-26 16:10:31 +01:00
|
|
|
import org.mian.gitnex.databinding.BottomSheetProfileBinding;
|
2019-06-03 23:25:05 +02:00
|
|
|
|
|
|
|
/**
|
2022-06-26 09:16:35 +02:00
|
|
|
* @author M M Arif
|
2019-06-03 23:25:05 +02:00
|
|
|
*/
|
2021-08-02 20:04:33 +02:00
|
|
|
public class BottomSheetMyProfileFragment extends BottomSheetDialogFragment {
|
2019-06-03 23:25:05 +02:00
|
|
|
|
2022-09-21 07:43:00 +02:00
|
|
|
@Nullable @Override
|
|
|
|
public View onCreateView(
|
|
|
|
@NonNull LayoutInflater inflater,
|
|
|
|
@Nullable ViewGroup container,
|
|
|
|
@Nullable Bundle savedInstanceState) {
|
2019-06-03 23:25:05 +02:00
|
|
|
|
2022-09-21 07:43:00 +02:00
|
|
|
BottomSheetProfileBinding bottomSheetProfileBinding =
|
|
|
|
BottomSheetProfileBinding.inflate(inflater, container, false);
|
2020-08-06 17:16:51 +02:00
|
|
|
|
2022-09-21 07:43:00 +02:00
|
|
|
bottomSheetProfileBinding.addNewEmailAddress.setOnClickListener(
|
|
|
|
v1 -> {
|
|
|
|
startActivity(new Intent(getContext(), MyProfileEmailActivity.class));
|
|
|
|
dismiss();
|
|
|
|
});
|
2019-06-03 23:25:05 +02:00
|
|
|
|
2022-08-15 16:26:02 +02:00
|
|
|
return bottomSheetProfileBinding.getRoot();
|
|
|
|
}
|
2019-06-03 23:25:05 +02:00
|
|
|
}
|