cutthecord/old-patches/nonearby/1171.patch

180 lines
6 KiB
Diff
Raw Normal View History

2020-06-25 09:52:31 +00:00
diff -crB from/smali/com/discord/widgets/friends/NearbyManager.smali to/smali/com/discord/widgets/friends/NearbyManager.smali
*** from/smali/com/discord/widgets/friends/NearbyManager.smali 2020-06-20 04:18:52.157368346 +0100
--- to/smali/com/discord/widgets/friends/NearbyManager.smali 2020-06-20 04:37:59.897421161 +0100
***************
*** 475,609 ****
# virtual methods
.method public final activateNearby()V
! .locals 9
- .line 1
- iget-object v0, p0, Lcom/discord/widgets/friends/NearbyManager;->messagesClient:Lcom/google/android/gms/nearby/messages/MessagesClient;
-
- if-eqz v0, :cond_1
-
- .line 2
- iget-object v1, p0, Lcom/discord/widgets/friends/NearbyManager;->outboundMessage:Lcom/google/android/gms/nearby/messages/Message;
-
- if-eqz v1, :cond_1
-
- .line 3
- iget-object v2, p0, Lcom/discord/widgets/friends/NearbyManager;->messagePublishOptions:Lcom/google/android/gms/nearby/messages/PublishOptions;
-
- if-eqz v2, :cond_1
-
- .line 4
- iget-object v3, p0, Lcom/discord/widgets/friends/NearbyManager;->messageListener:Lcom/google/android/gms/nearby/messages/MessageListener;
-
- if-eqz v3, :cond_1
-
- .line 5
- iget-object v4, p0, Lcom/discord/widgets/friends/NearbyManager;->subscribeOptions:Lcom/google/android/gms/nearby/messages/SubscribeOptions;
-
- if-eqz v4, :cond_1
-
- .line 6
- iget-object v5, p0, Lcom/discord/widgets/friends/NearbyManager;->nearbyStateSubject:Lrx/subjects/BehaviorSubject;
-
- new-instance v6, Lcom/discord/widgets/friends/NearbyManager$NearbyState$Connected;
-
- new-instance v7, Ljava/util/HashSet;
-
- iget-object v8, p0, Lcom/discord/widgets/friends/NearbyManager;->nearbyUserIds:Ljava/util/HashSet;
-
- invoke-direct {v7, v8}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
-
- invoke-direct {v6, v7}, Lcom/discord/widgets/friends/NearbyManager$NearbyState$Connected;-><init>(Ljava/util/Set;)V
-
- invoke-virtual {v5, v6}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
-
- .line 7
- check-cast v0, Lf/j/a/d/j/b/e/i;
-
- .line 8
- invoke-static {v1}, Lf/j/a/b/l1/e;->y(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-static {v2}, Lf/j/a/b/l1/e;->y(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-virtual {v0, v1}, Lf/j/a/d/j/b/e/i;->h(Ljava/lang/Object;)Lf/j/a/d/e/j/l/i;
-
- move-result-object v5
-
- .line 9
- iget-object v6, v2, Lcom/google/android/gms/nearby/messages/PublishOptions;->b:Lf/j/a/d/j/b/b;
-
- .line 10
- invoke-virtual {v0, v6}, Lf/j/a/d/j/b/e/i;->h(Ljava/lang/Object;)Lf/j/a/d/e/j/l/i;
-
- move-result-object v6
-
- new-instance v7, Lf/j/a/d/j/b/e/r;
-
- invoke-direct {v7, v0, v6, v5}, Lf/j/a/d/j/b/e/r;-><init>(Lf/j/a/d/j/b/e/i;Lf/j/a/d/e/j/l/i;Lf/j/a/d/e/j/l/i;)V
-
- new-instance v6, Lf/j/a/d/j/b/e/j;
-
- invoke-direct {v6, v0, v1, v7, v2}, Lf/j/a/d/j/b/e/j;-><init>(Lf/j/a/d/j/b/e/i;Lcom/google/android/gms/nearby/messages/Message;Lf/j/a/d/j/b/e/b0;Lcom/google/android/gms/nearby/messages/PublishOptions;)V
-
- new-instance v2, Lf/j/a/d/j/b/e/k;
-
- invoke-direct {v2, v1}, Lf/j/a/d/j/b/e/k;-><init>(Lcom/google/android/gms/nearby/messages/Message;)V
-
- invoke-virtual {v0, v5, v6, v2}, Lf/j/a/d/j/b/e/i;->f(Lf/j/a/d/e/j/l/i;Lf/j/a/d/j/b/e/a0;Lf/j/a/d/j/b/e/a0;)Lcom/google/android/gms/tasks/Task;
-
- .line 11
- invoke-static {v3}, Lf/j/a/b/l1/e;->y(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-static {v4}, Lf/j/a/b/l1/e;->y(Ljava/lang/Object;)Ljava/lang/Object;
-
- .line 12
- iget-object v1, v4, Lcom/google/android/gms/nearby/messages/SubscribeOptions;->a:Lcom/google/android/gms/nearby/messages/Strategy;
-
- .line 13
- iget v1, v1, Lcom/google/android/gms/nearby/messages/Strategy;->k:I
-
- if-nez v1, :cond_0
-
- const/4 v1, 0x1
-
- goto :goto_0
-
- :cond_0
- const/4 v1, 0x0
-
- :goto_0
- const-string v2, "Strategy.setBackgroundScanMode() is only supported by background subscribe (the version which takes a PendingIntent)."
-
- .line 14
- invoke-static {v1, v2}, Lf/j/a/b/l1/e;->m(ZLjava/lang/Object;)V
-
- invoke-virtual {v0, v3}, Lf/j/a/d/j/b/e/i;->h(Ljava/lang/Object;)Lf/j/a/d/e/j/l/i;
-
- move-result-object v1
-
- .line 15
- iget-object v2, v4, Lcom/google/android/gms/nearby/messages/SubscribeOptions;->c:Lf/j/a/d/j/b/d;
-
- .line 16
- invoke-virtual {v0, v2}, Lf/j/a/d/j/b/e/i;->h(Ljava/lang/Object;)Lf/j/a/d/e/j/l/i;
-
- move-result-object v2
-
- new-instance v3, Lf/j/a/d/j/b/e/s;
-
- invoke-direct {v3, v0, v2, v1}, Lf/j/a/d/j/b/e/s;-><init>(Lf/j/a/d/j/b/e/i;Lf/j/a/d/e/j/l/i;Lf/j/a/d/e/j/l/i;)V
-
- new-instance v2, Lf/j/a/d/j/b/e/l;
-
- invoke-direct {v2, v0, v1, v3, v4}, Lf/j/a/d/j/b/e/l;-><init>(Lf/j/a/d/j/b/e/i;Lf/j/a/d/e/j/l/i;Lf/j/a/d/j/b/e/d0;Lcom/google/android/gms/nearby/messages/SubscribeOptions;)V
-
- new-instance v3, Lf/j/a/d/j/b/e/m;
-
- invoke-direct {v3, v1}, Lf/j/a/d/j/b/e/m;-><init>(Lf/j/a/d/e/j/l/i;)V
-
- invoke-virtual {v0, v1, v2, v3}, Lf/j/a/d/j/b/e/i;->f(Lf/j/a/d/e/j/l/i;Lf/j/a/d/j/b/e/a0;Lf/j/a/d/j/b/e/a0;)Lcom/google/android/gms/tasks/Task;
-
- :cond_1
return-void
.end method
--- 475,482 ----
# virtual methods
.method public final activateNearby()V
! .locals 0
return-void
.end method
***************
*** 706,725 ****
.end method
.method public final initialize(J)V
! .locals 1
!
! .line 1
! invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
!
! move-result-object v0
!
! iput-object v0, p0, Lcom/discord/widgets/friends/NearbyManager;->meUserId:Ljava/lang/Long;
!
! .line 2
! invoke-direct {p0, p1, p2}, Lcom/discord/widgets/friends/NearbyManager;->setupBroadcaster(J)V
!
! .line 3
! invoke-direct {p0}, Lcom/discord/widgets/friends/NearbyManager;->setupListener()V
return-void
.end method
--- 579,585 ----
.end method
.method public final initialize(J)V
! .locals 0
return-void
.end method