From 11e329a6541763df20c43275b0583ee6a8b90149 Mon Sep 17 00:00:00 2001 From: ivan agosto Date: Sat, 15 Sep 2018 15:41:50 -0500 Subject: [PATCH] Refresh token on start app. --- .idea/workspace.xml | 328 +++++++++++------- .../java/org/libre/agosto/p2play/Database.kt | 4 +- .../org/libre/agosto/p2play/HostActivity.kt | 36 +- .../org/libre/agosto/p2play/MainActivity.kt | 6 + .../java/org/libre/agosto/p2play/ajax/Auth.kt | 40 ++- .../org/libre/agosto/p2play/ajax/Client.kt | 2 +- .../libre/agosto/p2play/models/TokenModel.kt | 1 + 7 files changed, 286 insertions(+), 131 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 23f17bd..d503a06 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -11,10 +11,13 @@ + + + - - - + + + - + - - - - - - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -77,18 +77,28 @@ - - + + - - + + - - + + + + + + + + + + + + @@ -101,7 +111,16 @@ Looper.prepare() setData logout + TokenModel + TokenModel( + token.token + token + Async + logout( + + $PROJECT_DIR$/app + - @@ -2272,10 +2293,6 @@ - - - - @@ -2283,6 +2300,11 @@ + + + + + @@ -2305,14 +2327,14 @@ - - - -