Update MainSwitchBar (#1818)

This commit is contained in:
残页 2022-04-06 23:42:46 +08:00 committed by GitHub
parent 81e2b5cfb7
commit d421924809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -163,7 +163,7 @@ dependencies {
implementation("dev.rikka.rikkax.preference:simplemenu-preference:1.0.3")
implementation("dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.1")
implementation("dev.rikka.rikkax.widget:borderview:1.1.0")
implementation("dev.rikka.rikkax.widget:mainswitchbar:1.0.0")
implementation("dev.rikka.rikkax.widget:mainswitchbar:1.0.1")
implementation("dev.rikka.rikkax.layoutinflater:layoutinflater:1.2.0")
implementation("me.zhanghai.android.appiconloader:appiconloader:1.3.1")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")

View File

@ -120,8 +120,6 @@ public class ScopeAdapter extends EmptyStateRecyclerView.EmptyStateAdapter<Scope
var mainSwitchBar = (MainSwitchBar) holder.itemView;
mainSwitchBar.setChecked(enabled);
mainSwitchBar.addOnSwitchChangeListener(switchBarOnCheckedChangeListener);
// bug of MainSwitchBar, force set the checkedChangeListener
fragment.runOnUiThread(mainSwitchBar::show);
}
@Override