blob: 3e241012873f445a32e9a9bdc12d2be465a28d6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package se.leap.bitmaskclient.providersetup.fragments;
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 se.leap.bitmaskclient.databinding.FSetupSuccessBinding;
public class SetupSuccessFragment extends BaseSetupFragment {
private SetupSuccessFragment(int position) {
super(position);
}
public static SetupSuccessFragment newInstance(int position) {
return new SetupSuccessFragment(position);
}
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
FSetupSuccessBinding binding = FSetupSuccessBinding.inflate(inflater, container, false);
binding.mainButton.setOnClickListener(v -> setupActivityCallback.onSetupFinished());
return binding.getRoot();
}
@Override
public void onFragmentSelected() {
super.onFragmentSelected();
setupActivityCallback.setNavigationButtonHidden(true);
setupActivityCallback.setCancelButtonHidden(true);
}
}
|