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 android.widget.TextView;
|
|
|
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
|
|
|
import org.mian.gitnex.R;
|
|
|
|
import org.mian.gitnex.activities.ProfileEmailActivity;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Author M M Arif
|
|
|
|
*/
|
|
|
|
|
2020-03-16 20:28:03 +01:00
|
|
|
public class BottomSheetProfileFragment extends BottomSheetDialogFragment {
|
2019-06-03 23:25:05 +02:00
|
|
|
|
|
|
|
@Nullable
|
|
|
|
@Override
|
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
2020-05-20 20:21:09 +02:00
|
|
|
View v = inflater.inflate(R.layout.bottom_sheet_profile, container, false);
|
2019-06-03 23:25:05 +02:00
|
|
|
|
|
|
|
TextView addNewEmailAddress = v.findViewById(R.id.addNewEmailAddress);
|
|
|
|
|
2020-08-06 17:16:51 +02:00
|
|
|
addNewEmailAddress.setOnClickListener(v1 -> {
|
|
|
|
|
|
|
|
startActivity(new Intent(getContext(), ProfileEmailActivity.class));
|
|
|
|
dismiss();
|
2019-06-03 23:25:05 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
return v;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|