This commit is contained in:
M66B 2021-12-26 15:55:10 +01:00
parent d0a5e3e1ea
commit 776b447e74
2 changed files with 10 additions and 2 deletions

View File

@ -218,7 +218,11 @@ public class FragmentBase extends Fragment {
}
public String getRequestKey() {
return getClass().getName() + ":result";
String we = toString();
int pa = we.indexOf('(');
int sp = we.indexOf(' ', pa);
String who = we.substring(pa + 1, sp);
return getClass().getName() + ":result:" + who;
}
@Override

View File

@ -44,7 +44,11 @@ public class FragmentDialogBase extends DialogFragment {
private int targetRequestCode;
public String getRequestKey() {
return getClass().getName() + ":result";
String we = toString();
int pa = we.indexOf('(');
int sp = we.indexOf(' ', pa);
String who = we.substring(pa + 1, sp);
return getClass().getName() + ":result:" + who;
}
@Override