mirror of https://github.com/M66B/FairEmail.git
Who?
This commit is contained in:
parent
d0a5e3e1ea
commit
776b447e74
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue