mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
a26737e510
Remove jetbrain import Merge branch 'master' into deprecations View bindings #3 View bindings #2 View bindings #1 Rewriting deprecated code. Co-authored-by: M M Arif <mmarif@swatian.com> Co-authored-by: M M Arif <mmarif@noreply.codeberg.org> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/809 Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-Authored-By: opyale <opyale@noreply.codeberg.org> Co-Committed-By: opyale <opyale@noreply.codeberg.org>
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
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;
|
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
|
|
import org.mian.gitnex.activities.ProfileEmailActivity;
|
|
import org.mian.gitnex.databinding.BottomSheetProfileBinding;
|
|
|
|
/**
|
|
* Author M M Arif
|
|
*/
|
|
|
|
public class BottomSheetProfileFragment extends BottomSheetDialogFragment {
|
|
|
|
@Nullable
|
|
@Override
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
|
BottomSheetProfileBinding bottomSheetProfileBinding = BottomSheetProfileBinding.inflate(inflater, container, false);
|
|
|
|
bottomSheetProfileBinding.addNewEmailAddress.setOnClickListener(v1 -> {
|
|
|
|
startActivity(new Intent(getContext(), ProfileEmailActivity.class));
|
|
dismiss();
|
|
});
|
|
|
|
return bottomSheetProfileBinding.getRoot();
|
|
}
|
|
|
|
}
|