正在查看: Hyouka private v5.8.9 应用的 ServerFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 ServerFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens.settings.more.settings;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListAdapter;
import android.widget.ListView;
import com.beint.project.Engine;
import com.beint.project.adapter.ServersListAdapter;
import com.beint.project.items.ServersItem;
import com.beint.project.screens.BaseScreen;
import java.util.ArrayList;
public class ServerFragment extends BaseScreen {
private static final String TAG = ScreenTabMore.class.getCanonicalName();
private ServersItem item;
private ListView serversList;
private ServersListAdapter serversListAdapter;
private ArrayList<ServersItem> serversNames;
public ServerFragment() {
setScreenId(TAG);
setScreenType(BaseScreen.SCREEN_TYPE.ABOUT_T);
}
@Override
public n0.a getDefaultViewModelCreationExtras() {
return androidx.lifecycle.h.a(this);
}
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(2131558747, viewGroup, false);
this.serversList = (ListView) inflate.findViewById(2131363608);
ListAdapter serversListAdapter = new ServersListAdapter(getActivity());
this.serversListAdapter = serversListAdapter;
this.serversList.setAdapter(serversListAdapter);
this.serversNames = new ArrayList<>();
String[] strArr = {"127.0.0.1", "192.168.0.135", "zms-us1.hawkstream.com", "vzgo.hawkstream.com", "smstest.hawkstream.com", "nodecast.com", "zvc7.hawkstream.com", "zvx1.zangi.com", "zvx2.zangi.com", "85.25.153.12", "37.48.99.1", "37.48.99.2", "37.48.99.22", "37.48.99.23", "85.25.119.154", "188.138.101.132", "aws0.hawkstream.com", "aws.hawkstream.com", "aws1.hawkstream.com", "aws2.hawkstream.com", "aws3.hawkstream.com", "aws4.hawkstream.com", "aws5.hawkstream.com", "aws6.hawkstream.com", "aws7.hawkstream.com", "aws8.hawkstream.com", "aws9.hawkstream.com", "aws10.hawkstream.com"};
for (int i = 0; i < 28; i++) {
String str = strArr[i];
ServersItem serversItem = new ServersItem();
this.item = serversItem;
serversItem.setServerName(str);
this.serversNames.add(this.item);
}
this.serversListAdapter.update(this.serversNames);
this.serversListAdapter.notifyDataSetChanged();
this.serversList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i7, long j) {
Engine.getInstance().stop();
Engine.getInstance().start();
ServerFragment.this.back();
}
});
return inflate;
}
}