123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- .class Lcom/tbruyelle/rxpermissions2/RxPermissions$1$1;
- .super Ljava/lang/Object;
- .source "RxPermissions.java"
- # interfaces
- .implements Lio/reactivex/functions/Function;
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lcom/tbruyelle/rxpermissions2/RxPermissions$1;->apply(Lio/reactivex/Observable;)Lio/reactivex/ObservableSource;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x0
- name = null
- .end annotation
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/lang/Object;",
- "Lio/reactivex/functions/Function<",
- "Ljava/util/List<",
- "Lcom/tbruyelle/rxpermissions2/Permission;",
- ">;",
- "Lio/reactivex/ObservableSource<",
- "Ljava/lang/Boolean;",
- ">;>;"
- }
- .end annotation
- # instance fields
- .field final synthetic this$1:Lcom/tbruyelle/rxpermissions2/RxPermissions$1;
- # direct methods
- .method constructor <init>(Lcom/tbruyelle/rxpermissions2/RxPermissions$1;)V
- .locals 0
- .param p1, "this$1" # Lcom/tbruyelle/rxpermissions2/RxPermissions$1;
- .line 82
- iput-object p1, p0, Lcom/tbruyelle/rxpermissions2/RxPermissions$1$1;->this$1:Lcom/tbruyelle/rxpermissions2/RxPermissions$1;
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public apply(Ljava/util/List;)Lio/reactivex/ObservableSource;
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/util/List<",
- "Lcom/tbruyelle/rxpermissions2/Permission;",
- ">;)",
- "Lio/reactivex/ObservableSource<",
- "Ljava/lang/Boolean;",
- ">;"
- }
- .end annotation
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/lang/Exception;
- }
- .end annotation
- .line 85
- .local p1, "permissions":Ljava/util/List;, "Ljava/util/List<Lcom/tbruyelle/rxpermissions2/Permission;>;"
- invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
- move-result v0
- if-eqz v0, :cond_0
- .line 89
- invoke-static {}, Lio/reactivex/Observable;->empty()Lio/reactivex/Observable;
- move-result-object v0
- return-object v0
- .line 92
- :cond_0
- invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
- move-result-object v0
- :goto_0
- invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
- move-result v1
- if-eqz v1, :cond_2
- invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
- move-result-object v1
- check-cast v1, Lcom/tbruyelle/rxpermissions2/Permission;
- .line 93
- .local v1, "p":Lcom/tbruyelle/rxpermissions2/Permission;
- iget-boolean v2, v1, Lcom/tbruyelle/rxpermissions2/Permission;->granted:Z
- if-nez v2, :cond_1
- .line 94
- const/4 v0, 0x0
- invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
- move-result-object v0
- invoke-static {v0}, Lio/reactivex/Observable;->just(Ljava/lang/Object;)Lio/reactivex/Observable;
- move-result-object v0
- return-object v0
- .line 96
- .end local v1 # "p":Lcom/tbruyelle/rxpermissions2/Permission;
- :cond_1
- goto :goto_0
- .line 97
- :cond_2
- const/4 v0, 0x1
- invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
- move-result-object v0
- invoke-static {v0}, Lio/reactivex/Observable;->just(Ljava/lang/Object;)Lio/reactivex/Observable;
- move-result-object v0
- return-object v0
- .end method
- .method public bridge synthetic apply(Ljava/lang/Object;)Ljava/lang/Object;
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/lang/Exception;
- }
- .end annotation
- .line 82
- check-cast p1, Ljava/util/List;
- invoke-virtual {p0, p1}, Lcom/tbruyelle/rxpermissions2/RxPermissions$1$1;->apply(Ljava/util/List;)Lio/reactivex/ObservableSource;
- move-result-object p1
- return-object p1
- .end method
|