File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
appcheck/firebase-appcheck/src/main/java/com/google/firebase/appcheck/internal Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 21
21
import androidx .annotation .NonNull ;
22
22
import androidx .annotation .VisibleForTesting ;
23
23
import com .google .android .gms .tasks .OnFailureListener ;
24
- import com .google .android .gms .tasks .Task ;
25
- import com .google .firebase .appcheck .AppCheckToken ;
26
24
import java .util .concurrent .Executors ;
27
25
import java .util .concurrent .ScheduledExecutorService ;
28
26
import java .util .concurrent .ScheduledFuture ;
@@ -93,14 +91,15 @@ private long getNextRefreshMillis() {
93
91
}
94
92
95
93
private void onRefresh () {
96
- Task <AppCheckToken > task = firebaseAppCheck .fetchTokenFromProvider ();
97
- task .addOnFailureListener (
98
- new OnFailureListener () {
99
- @ Override
100
- public void onFailure (@ NonNull Exception e ) {
101
- scheduleRefreshAfterFailure ();
102
- }
103
- });
94
+ firebaseAppCheck
95
+ .fetchTokenFromProvider ()
96
+ .addOnFailureListener (
97
+ new OnFailureListener () {
98
+ @ Override
99
+ public void onFailure (@ NonNull Exception e ) {
100
+ scheduleRefreshAfterFailure ();
101
+ }
102
+ });
104
103
}
105
104
106
105
/** Cancels the in-flight scheduled refresh. */
You can’t perform that action at this time.
0 commit comments