Added logging

This commit is contained in:
M66B 2020-03-27 14:35:13 +01:00
parent 21bb3af518
commit a80c3a953f
2 changed files with 5 additions and 1 deletions

View File

@ -312,6 +312,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
Log.i("Result class=" + this.getClass().getSimpleName() + Log.i("Result class=" + this.getClass().getSimpleName() +
" action=" + action + " request=" + requestCode + " result=" + resultCode); " action=" + action + " request=" + requestCode + " result=" + resultCode);
Log.logExtras(data); Log.logExtras(data);
if (data != null)
Log.i("data=" + data.getData());
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
} }

View File

@ -161,7 +161,7 @@ public class FragmentBase extends Fragment {
@Override @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Log.d("Create view " + this); Log.d("Create view " + this + (savedInstanceState != null));
return super.onCreateView(inflater, container, savedInstanceState); return super.onCreateView(inflater, container, savedInstanceState);
} }
@ -203,6 +203,8 @@ public class FragmentBase extends Fragment {
Log.i("Result class=" + this.getClass().getSimpleName() + Log.i("Result class=" + this.getClass().getSimpleName() +
" action=" + action + " request=" + requestCode + " result=" + resultCode); " action=" + action + " request=" + requestCode + " result=" + resultCode);
Log.logExtras(data); Log.logExtras(data);
if (data != null)
Log.i("data=" + data.getData());
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
try { try {