Rename method to not clash with new one introduced in API 23

This commit is contained in:
cketti 2016-02-13 07:26:01 +01:00
parent 9519f8ec8e
commit 71459ed88e
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ public class AttachmentController {
AttachmentController(MessagingController controller, DownloadManager downloadManager,
MessageViewFragment messageViewFragment, AttachmentViewInfo attachment) {
this.context = messageViewFragment.getContext();
this.context = messageViewFragment.getApplicationContext();
this.controller = controller;
this.downloadManager = downloadManager;
this.messageViewFragment = messageViewFragment;

View file

@ -656,7 +656,7 @@ public class MessageViewFragment extends Fragment implements ConfirmationDialogF
}
}
public Context getContext() {
public Context getApplicationContext() {
return mContext;
}