diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2022-04-02 14:26:35 +0000 |
---|---|---|
committer | Docile-Alligator <chineseperson5@gmail.com> | 2022-04-02 14:26:35 +0000 |
commit | d7fcb66cda6e21fae3c5275097591919c18f63d4 (patch) | |
tree | 1e0e511b123f8b7ede7cb83b8a22f044c56ebc7f | |
parent | 840216b3d9b0999abfce490d3d5ffdfda685ccb2 (diff) | |
download | infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar.gz infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar.bz2 infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar.lz infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar.xz infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.tar.zst infinity-for-reddit-d7fcb66cda6e21fae3c5275097591919c18f63d4.zip |
Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues.
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java index 44668b13..80e54fea 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PullNotificationWorker.java @@ -227,6 +227,7 @@ public class PullNotificationWorker extends Worker { if (response.code() == 401) { String accessToken = refreshAccessToken(account); if (!accessToken.equals("")) { + account.setAccessToken(accessToken); return fetchMessages(account, retryCount - 1); } |