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/patches/nonearby/1029.patch
2020-01-28 13:33:35 +00:00

86 lines
3.3 KiB
Diff

diff -crB com.discord-1006-base/smali/com/discord/widgets/friends/NearbyManager.smali com.discord-1006/smali/com/discord/widgets/friends/NearbyManager.smali
*** com.discord-1006-base/smali/com/discord/widgets/friends/NearbyManager.smali 2019-12-13 11:10:57.537459476 +0300
--- com.discord-1006/smali/com/discord/widgets/friends/NearbyManager.smali 2019-12-13 11:15:49.555787538 +0300
***************
*** 430,484 ****
# 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_0
!
! .line 2
! iget-object v1, p0, Lcom/discord/widgets/friends/NearbyManager;->outboundMessage:Lcom/google/android/gms/nearby/messages/Message;
!
! if-eqz v1, :cond_0
!
! .line 3
! iget-object v2, p0, Lcom/discord/widgets/friends/NearbyManager;->messagePublishOptions:Lcom/google/android/gms/nearby/messages/PublishOptions;
!
! if-eqz v2, :cond_0
!
! .line 4
! iget-object v3, p0, Lcom/discord/widgets/friends/NearbyManager;->messageListener:Lcom/google/android/gms/nearby/messages/MessageListener;
!
! if-eqz v3, :cond_0
!
! .line 5
! iget-object v4, p0, Lcom/discord/widgets/friends/NearbyManager;->subscribeOptions:Lcom/google/android/gms/nearby/messages/SubscribeOptions;
!
! if-eqz v4, :cond_0
!
! .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
! invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/nearby/messages/MessagesClient;->a(Lcom/google/android/gms/nearby/messages/Message;Lcom/google/android/gms/nearby/messages/PublishOptions;)Lcom/google/android/gms/tasks/Task;
!
! .line 8
! invoke-virtual {v0, v3, v4}, Lcom/google/android/gms/nearby/messages/MessagesClient;->a(Lcom/google/android/gms/nearby/messages/MessageListener;Lcom/google/android/gms/nearby/messages/SubscribeOptions;)Lcom/google/android/gms/tasks/Task;
- :cond_0
return-void
.end method
--- 430,437 ----
# virtual methods
.method public final activateNearby()V
! .locals 0
return-void
.end method
***************
*** 576,586 ****
.method public final initialize(J)V
.locals 0
- .line 1
- invoke-direct {p0, p1, p2}, Lcom/discord/widgets/friends/NearbyManager;->setupBroadcaster(J)V
-
- .line 2
- invoke-direct {p0}, Lcom/discord/widgets/friends/NearbyManager;->setupListener()V
-
return-void
.end method
--- 529,533 ----
Only in com.discord-1006/smali/com/discord/widgets/friends: NearbyManager.smali.orig
Only in com.discord-1006/smali/com/discord/widgets/friends: NearbyManager.smali.rej