diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java b/app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java index e3b81ac6..9f4dbed2 100644 --- a/app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java +++ b/app/src/main/java/net/lacolaco/smileessence/view/HomeFragment.java @@ -67,7 +67,7 @@ public class HomeFragment extends CustomListFragment<StatusListAdapter> { adapter.removeByStatusID(id); adapter.updateForce(); }); - final Account account = Application.getCurrentAccount(); + final Account account = Application.getInstance().getCurrentAccount(); new HomeTimelineTask(account) .setCount(UserPreferenceHelper.getInstance().getRequestCountPerPage()) .onFail(e -> Notificator.getInstance().publish(R.string.notice_error_get_home, NotificationType.ALERT)) @@ -94,7 +94,7 @@ public class HomeFragment extends CustomListFragment<StatusListAdapter> { }); return; } - final Account currentAccount = Application.getCurrentAccount(); + final Account currentAccount = Application.getInstance().getCurrentAccount(); new HomeTimelineTask(currentAccount) .setCount(UserPreferenceHelper.getInstance().getRequestCountPerPage()) .setSinceId(adapter.getTopID()) @@ -114,7 +114,7 @@ public class HomeFragment extends CustomListFragment<StatusListAdapter> { @Override public void onPullUpToRefresh(final PullToRefreshBase<ListView> refreshView) { final StatusListAdapter adapter = getAdapter(); - final Account currentAccount = Application.getCurrentAccount(); + final Account currentAccount = Application.getInstance().getCurrentAccount(); new HomeTimelineTask(currentAccount) .setCount(UserPreferenceHelper.getInstance().getRequestCountPerPage()) .setMaxId(adapter.getLastID() - 1) |