mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Small improvements
This commit is contained in:
@@ -45,7 +45,7 @@ public class ViewImageHint extends AppCompatImageView implements View.OnLongClic
|
||||
String title = getContentDescription().toString();
|
||||
if (!TextUtils.isEmpty(title)) {
|
||||
int[] pos = new int[2];
|
||||
getLocationInWindow(pos);
|
||||
getLocationOnScreen(pos);
|
||||
|
||||
Toast toast = ToastEx.makeText(getContext(), title, Toast.LENGTH_LONG);
|
||||
toast.setGravity(Gravity.TOP | Gravity.START, pos[0], pos[1]);
|
||||
|
||||
Reference in New Issue
Block a user