@Override protected void onPostExecute(Void aVoid) { super.onPostExecute(aVoid); if (result) { User.setLastRefreshed(context, "" + System.currentTimeMillis()); } timeFinished = System.currentTimeMillis(); listener.onPostRefresh(result, refreshedEmails); }
public RefreshInbox(Context context, RefreshInboxListener refreshInboxListener) { this.context = context; this.listener = refreshInboxListener; username = User.getUsername(context); pwd = User.getPassword(context); }