Lastcomm
This commit is contained in:
parent
cd342d1034
commit
26297fbb5b
|
@ -445,12 +445,14 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||||
|
|
||||||
boolean isSelf=AccountSessionManager.getInstance().isSelf(accountID, account);
|
boolean isSelf=AccountSessionManager.getInstance().isSelf(accountID, account);
|
||||||
|
|
||||||
noteEdit.setOnFocusChangeListener((v, hasFocus) -> {
|
// noteEdit.setOnFocusChangeListener((v, hasFocus) -> {
|
||||||
if(!hasFocus){
|
// if(!hasFocus){
|
||||||
// Toast.makeText(getActivity(), "Its going here", Toast.LENGTH_LONG).show();
|
//// Toast.makeText(getActivity(), "Its going here", Toast.LENGTH_LONG).show();
|
||||||
savePrivateNote();
|
// savePrivateNote();
|
||||||
}
|
//// noteEdit.setOnFocusChangeListener(savePrivateNote());
|
||||||
});
|
// }
|
||||||
|
// });
|
||||||
|
noteEdit.setOnClickListener(v->savePrivateNote());
|
||||||
|
|
||||||
if(account.locked){
|
if(account.locked){
|
||||||
ssb=new SpannableStringBuilder("@");
|
ssb=new SpannableStringBuilder("@");
|
||||||
|
@ -470,6 +472,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||||
username.setText('@'+account.acct+(isSelf ? ('@'+AccountSessionManager.getInstance().getAccount(accountID).domain) : ""));
|
username.setText('@'+account.acct+(isSelf ? ('@'+AccountSessionManager.getInstance().getAccount(accountID).domain) : ""));
|
||||||
}
|
}
|
||||||
CharSequence parsedBio=HtmlParser.parse(account.note, account.emojis, Collections.emptyList(), Collections.emptyList(), accountID);
|
CharSequence parsedBio=HtmlParser.parse(account.note, account.emojis, Collections.emptyList(), Collections.emptyList(), accountID);
|
||||||
|
bio.setOnClickListener(v->savePrivateNote());
|
||||||
if(TextUtils.isEmpty(parsedBio)){
|
if(TextUtils.isEmpty(parsedBio)){
|
||||||
bio.setVisibility(View.GONE);
|
bio.setVisibility(View.GONE);
|
||||||
}else{
|
}else{
|
||||||
|
@ -994,7 +997,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||||
}
|
}
|
||||||
|
|
||||||
private void savePrivateNote(){
|
private void savePrivateNote(){
|
||||||
new SetPrivateNote(profileAccountID, noteEdit.getText().toString()).setCallback(new SimpleCallback<>(this) {
|
currentRequest = new SetPrivateNote(profileAccountID, noteEdit.getText().toString()).setCallback(new SimpleCallback<>(this) {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Relationship result) {
|
public void onSuccess(Relationship result) {
|
||||||
relationship=result;
|
relationship=result;
|
||||||
|
|
Loading…
Reference in New Issue