3 import mhr.app.AppMainActivity;
5 import mhr.appcore.commands.imagecommands.ApplyUndoPatchCommand;
6 import mhr.appcore.commands.imagecommands.MergeAllCommand;
7 import android.app.Activity;
8 import android.app.Fragment;
9 import android.os.Bundle;
10 import android.view.LayoutInflater;
11 import android.view.View;
12 import android.view.View.OnClickListener;
13 import android.view.ViewGroup;
14 import android.widget.Toast;
32 super.onAttach(activity);
39 public void onCreate(Bundle savedInstanceState) {
40 super.onCreate(savedInstanceState);
50 public View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
58 View v = inflater.inflate(
R.layout.fragment_debug_tool_settings, container,
false);
65 super.onActivityCreated(savedInstanceState);
70 root.findViewById(
R.id.DebugToolShowDialogBtn).setOnClickListener(
this);
71 root.findViewById(
R.id.DebugToolRenderAllBtn).setOnClickListener(
this);
72 root.findViewById(
R.id.DebugToolTryExceptionFeedbackBtn).setOnClickListener(
this);
73 root.findViewById(
R.id.DebugToolUndoBtn).setOnClickListener(
this);
74 root.findViewById(
R.id.DebugToolMergeAllBtn).setOnClickListener(
this);
122 super.onDestroyView();
147 case R.id.DebugToolShowDialogBtn:
150 case R.id.DebugToolRenderAllBtn:
153 case R.id.DebugToolTryExceptionFeedbackBtn:
157 case R.id.DebugToolUndoBtn:
160 case R.id.DebugToolMergeAllBtn: