This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/old-patches/nonearby/1223.patch

180 lines
6 KiB
Diff
Raw Normal View History

2020-08-09 11:42:54 +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-07-25 19:53:45.760000000 +0300
--- to/smali/com/discord/widgets/friends/NearbyManager.smali 2020-07-25 19:56:25.220000000 +0300
***************
*** 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/h/a/f/j/b/e/i;
-
- .line 8
- invoke-static {v1}, Lf/h/a/c/i1/e;->D(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-static {v2}, Lf/h/a/c/i1/e;->D(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-virtual {v0, v1}, Lf/h/a/f/j/b/e/i;->h(Ljava/lang/Object;)Lf/h/a/f/e/h/i/k;
-
- move-result-object v5
-
- .line 9
- iget-object v6, v2, Lcom/google/android/gms/nearby/messages/PublishOptions;->b:Lf/h/a/f/j/b/b;
-
- .line 10
- invoke-virtual {v0, v6}, Lf/h/a/f/j/b/e/i;->h(Ljava/lang/Object;)Lf/h/a/f/e/h/i/k;
-
- move-result-object v6
-
- new-instance v7, Lf/h/a/f/j/b/e/r;
-
- invoke-direct {v7, v0, v6, v5}, Lf/h/a/f/j/b/e/r;-><init>(Lf/h/a/f/j/b/e/i;Lf/h/a/f/e/h/i/k;Lf/h/a/f/e/h/i/k;)V
-
- new-instance v6, Lf/h/a/f/j/b/e/j;
-
- invoke-direct {v6, v0, v1, v7, v2}, Lf/h/a/f/j/b/e/j;-><init>(Lf/h/a/f/j/b/e/i;Lcom/google/android/gms/nearby/messages/Message;Lf/h/a/f/j/b/e/b0;Lcom/google/android/gms/nearby/messages/PublishOptions;)V
-
- new-instance v2, Lf/h/a/f/j/b/e/k;
-
- invoke-direct {v2, v1}, Lf/h/a/f/j/b/e/k;-><init>(Lcom/google/android/gms/nearby/messages/Message;)V
-
- invoke-virtual {v0, v5, v6, v2}, Lf/h/a/f/j/b/e/i;->f(Lf/h/a/f/e/h/i/k;Lf/h/a/f/j/b/e/a0;Lf/h/a/f/j/b/e/a0;)Lcom/google/android/gms/tasks/Task;
-
- .line 11
- invoke-static {v3}, Lf/h/a/c/i1/e;->D(Ljava/lang/Object;)Ljava/lang/Object;
-
- invoke-static {v4}, Lf/h/a/c/i1/e;->D(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/h/a/c/i1/e;->r(ZLjava/lang/Object;)V
-
- invoke-virtual {v0, v3}, Lf/h/a/f/j/b/e/i;->h(Ljava/lang/Object;)Lf/h/a/f/e/h/i/k;
-
- move-result-object v1
-
- .line 15
- iget-object v2, v4, Lcom/google/android/gms/nearby/messages/SubscribeOptions;->c:Lf/h/a/f/j/b/d;
-
- .line 16
- invoke-virtual {v0, v2}, Lf/h/a/f/j/b/e/i;->h(Ljava/lang/Object;)Lf/h/a/f/e/h/i/k;
-
- move-result-object v2
-
- new-instance v3, Lf/h/a/f/j/b/e/s;
-
- invoke-direct {v3, v0, v2, v1}, Lf/h/a/f/j/b/e/s;-><init>(Lf/h/a/f/j/b/e/i;Lf/h/a/f/e/h/i/k;Lf/h/a/f/e/h/i/k;)V
-
- new-instance v2, Lf/h/a/f/j/b/e/l;
-
- invoke-direct {v2, v0, v1, v3, v4}, Lf/h/a/f/j/b/e/l;-><init>(Lf/h/a/f/j/b/e/i;Lf/h/a/f/e/h/i/k;Lf/h/a/f/j/b/e/d0;Lcom/google/android/gms/nearby/messages/SubscribeOptions;)V
-
- new-instance v3, Lf/h/a/f/j/b/e/m;
-
- invoke-direct {v3, v1}, Lf/h/a/f/j/b/e/m;-><init>(Lf/h/a/f/e/h/i/k;)V
-
- invoke-virtual {v0, v1, v2, v3}, Lf/h/a/f/j/b/e/i;->f(Lf/h/a/f/e/h/i/k;Lf/h/a/f/j/b/e/a0;Lf/h/a/f/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