mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Long press to erase account image
This commit is contained in:
@@ -485,6 +485,14 @@ public class FragmentAccount extends FragmentBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnAvatar.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
avatar = null;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Helper.linkPro(tvAvatarPro);
|
||||
|
||||
btnCalendar.setEnabled(Helper.hasPermission(getContext(), Manifest.permission.WRITE_CALENDAR));
|
||||
|
||||
@@ -307,6 +307,14 @@ public class FragmentPop extends FragmentBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnAvatar.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
avatar = null;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Helper.linkPro(tvAvatarPro);
|
||||
|
||||
grpCalendar.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.GONE : View.VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user