Skip to content

Commit

Permalink
NekoN: add shadowban #5
Browse files Browse the repository at this point in the history
rearrange shadowban manager at NekoAccountSettingsActivity.java
  • Loading branch information
nexplorer-3e committed Mar 12, 2023
1 parent d144e98 commit c737462
Showing 1 changed file with 7 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,20 @@
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import org.telegram.messenger.AndroidUtilities;
import org.telegram.messenger.ChatObject;
import org.telegram.messenger.FileLog;
import org.telegram.messenger.LocaleController;
import org.telegram.messenger.R;
import org.telegram.messenger.UserConfig;
import org.telegram.messenger.*;
import org.telegram.tgnet.TLRPC;
import org.telegram.ui.ActionBar.ActionBar;
import org.telegram.ui.ActionBar.AlertDialog;
import org.telegram.ui.ActionBar.BaseFragment;
import org.telegram.ui.ActionBar.Theme;
import org.telegram.ui.ActionBar.ThemeDescription;
import org.telegram.ui.Cells.EmptyCell;
import org.telegram.ui.Cells.HeaderCell;
import org.telegram.ui.Cells.NotificationsCheckCell;
import org.telegram.ui.Cells.ShadowSectionCell;
import org.telegram.ui.Cells.TextCheckCell;
import org.telegram.ui.Cells.TextDetailSettingsCell;
import org.telegram.ui.Cells.TextInfoPrivacyCell;
import org.telegram.ui.Cells.TextSettingsCell;
import org.telegram.ui.ActionBar.*;
import org.telegram.ui.Cells.*;
import org.telegram.ui.Components.EditTextBoldCursor;
import org.telegram.ui.Components.LayoutHelper;
import org.telegram.ui.Components.RecyclerListView;
import org.telegram.ui.Components.UndoView;
import tw.nekomimi.nekogram.ui.MessageHelper;

import java.util.ArrayList;

import tw.nekomimi.nekogram.ui.MessageHelper;
import tw.nekomimi.nekogram.settings.ThShadowbanManager;

@SuppressLint("RtlHardcoded")
public class NekoAccountSettingsActivity extends BaseFragment {

Expand Down Expand Up @@ -219,10 +199,11 @@ private void updateRows() {
accountRow = rowCount++;
uploadDeviceInfoRow = rowCount++;
deleteAccountRow = rowCount++;
account2Row = rowCount++;

chatSBManagerRow = rowCount++;

account2Row = rowCount++;

if (listAdapter != null) {
listAdapter.notifyDataSetChanged();
}
Expand Down Expand Up @@ -272,7 +253,7 @@ public ArrayList<ThemeDescription> getThemeDescriptions() {

private class ListAdapter extends RecyclerListView.SelectionAdapter {

private Context mContext;
private final Context mContext;

public ListAdapter(Context context) {
mContext = context;
Expand Down

0 comments on commit c737462

Please sign in to comment.