|
|
@@ -8,12 +8,11 @@ import android.util.Log;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
-import android.widget.Button;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
|
|
|
-import kr.co.zumo.app.lifeplus.supervisor.DialogManager;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.DialogHelper;
|
|
|
+import kr.co.zumo.app.lifeplus.supervisor.DialogManager;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.FragmentChanger;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenChangerHelper;
|
|
|
import kr.co.zumo.app.lifeplus.view.dialog.DialogID;
|
|
|
@@ -44,7 +43,6 @@ public class LoginFragment extends FragmentBase<LoginPresenter> implements ILogi
|
|
|
@Override
|
|
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
|
// Inflate the layout for this fragment
|
|
|
-
|
|
|
return inflater.inflate(R.layout.fragment_login, container, false);
|
|
|
}
|
|
|
|
|
|
@@ -60,8 +58,9 @@ public class LoginFragment extends FragmentBase<LoginPresenter> implements ILogi
|
|
|
protected void defineActionBar() {
|
|
|
|
|
|
ActionBarManager actionBarManager = ActionBarManager.getInstance();
|
|
|
- actionBarManager.setTitle(R.string.login);
|
|
|
- actionBarManager.setDisplayHomeAsUpEnabled(true);
|
|
|
+// actionBarManager.setTitle(R.string.login);
|
|
|
+// actionBarManager.setDisplayHomeAsUpEnabled(true);
|
|
|
+ actionBarManager.hide();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -76,19 +75,22 @@ public class LoginFragment extends FragmentBase<LoginPresenter> implements ILogi
|
|
|
|
|
|
@Override
|
|
|
protected void draw() {
|
|
|
- Button button = getView().findViewById(R.id.button_back);
|
|
|
- button.setOnClickListener(v -> {
|
|
|
- presenter.onEvent(Event.BACK);
|
|
|
- });
|
|
|
+// Button button = getView().findViewById(R.id.button_back);
|
|
|
+// button.setOnClickListener(v -> {
|
|
|
+// presenter.onEvent(Event.BACK);
|
|
|
+// });
|
|
|
|
|
|
DialogManager dialogManager = new DialogManager();
|
|
|
dialogManager.show(DialogHelper.getInstance().getFragmentManager(), DialogID.INPUT_PIN, (dialog, resultCode, resultString) -> {
|
|
|
- Log.i("APP# LoginFragment | draw", "|" + "resultCode: " + resultCode + ", resultString- " + resultString);
|
|
|
+ Log.i("APP# LoginFragment | draw", "|" + "resultCode: " + resultCode);
|
|
|
if (DialogResult.CODE_SUCCESS == resultCode) {
|
|
|
+ presenter.onEvent(Event.INPUT_PIN, resultString);
|
|
|
}
|
|
|
- else if (DialogResult.CODE_FAIL == resultCode) {
|
|
|
+ else if (DialogResult.CODE_CANCEL == resultCode) {
|
|
|
+ presenter.onEvent(Event.BACK);
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|