diff --git a/patches/experiments/1148.patch b/patches/experiments/1148.patch index bb3861f12..1b1135655 100644 --- a/patches/experiments/1148.patch +++ b/patches/experiments/1148.patch @@ -140,122 +140,3 @@ diff -crB from/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model if-eqz p4, :cond_0 -diff -crB from/smali_classes2/com/discord/widgets/tabs/TabsFeatureFlag.smali to/smali_classes2/com/discord/widgets/tabs/TabsFeatureFlag.smali -*** from/smali_classes2/com/discord/widgets/tabs/TabsFeatureFlag.smali 2020-05-11 20:39:42.696345636 +0100 ---- to/smali_classes2/com/discord/widgets/tabs/TabsFeatureFlag.smali 2020-05-11 20:40:10.608046899 +0100 -*************** -*** 79,85 **** - .line 3 - iget-object p1, p0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->sharedPreferences:Landroid/content/SharedPreferences; - -! const/4 v0, -0x1 - - const-string v1, "CACHE_KEY_TABS_EXPERIMENT_BUCKET" - ---- 79,85 ---- - .line 3 - iget-object p1, p0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->sharedPreferences:Landroid/content/SharedPreferences; - -! const/4 v0, 0x2 - - const-string v1, "CACHE_KEY_TABS_EXPERIMENT_BUCKET" - -*************** -*** 280,288 **** - move-result-object v0 - - .line 2 -! invoke-virtual {p1}, Lcom/discord/stores/StoreExperiments$Experiment;->getBucket()I -! -! move-result p1 - - const-string v1, "CACHE_KEY_TABS_EXPERIMENT_BUCKET" - ---- 280,286 ---- - move-result-object v0 - - .line 2 -! const/4 p1, 0x2 - - const-string v1, "CACHE_KEY_TABS_EXPERIMENT_BUCKET" - -*************** -*** 341,362 **** - .end method - - .method public final isEnabled()Z -! .locals 2 -! -! .line 1 -! iget v0, p0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->experimentBucket:I -! -! const/4 v1, 0x1 -! -! if-lt v0, v1, :cond_0 -! -! goto :goto_0 - -! :cond_0 -! const/4 v1, 0x0 - -! :goto_0 -! return v1 - .end method - - .method public final prefetchExperimentBeforeRegistration(Lcom/discord/stores/StoreExperiments;)V ---- 339,349 ---- - .end method - - .method public final isEnabled()Z -! .locals 1 - -! const/4 v0, 0x1 - -! return v0 - .end method - - .method public final prefetchExperimentBeforeRegistration(Lcom/discord/stores/StoreExperiments;)V -*************** -*** 404,434 **** - .end method - - .method public final useOverlappingPanels()Z -! .locals 2 -! -! .line 1 -! iget v0, p0, Lcom/discord/widgets/tabs/TabsFeatureFlag;->experimentBucket:I -! -! const/4 v1, 0x2 -! -! if-eq v0, v1, :cond_1 -! -! const/4 v1, 0x3 -! -! if-ne v0, v1, :cond_0 -! -! goto :goto_0 -! -! :cond_0 -! const/4 v0, 0x0 -! -! goto :goto_1 - -- :cond_1 -- :goto_0 - const/4 v0, 0x1 - -- :goto_1 - return v0 - .end method - ---- 391,400 ---- - .end method - - .method public final useOverlappingPanels()Z -! .locals 1 - - const/4 v0, 0x1 - - return v0 - .end method -