Fixed #54
This commit is contained in:
parent
4a4df71d13
commit
c98f8875f6
@ -1,7 +1,5 @@
|
|||||||
iTXTech Daedalus
|
iTXTech Daedalus
|
||||||
===============
|
===============
|
||||||
__热烈庆祝中国共产党第十九次全国代表大会胜利召开!!!__
|
|
||||||
|
|
||||||
__No root required Android DNS modifier and Hosts/DNSMasq resolver.__
|
__No root required Android DNS modifier and Hosts/DNSMasq resolver.__
|
||||||
|
|
||||||
[](https://qr.alipay.com/a6x07022gffiehykicipv1a)
|
[](https://qr.alipay.com/a6x07022gffiehykicipv1a)
|
||||||
|
@ -137,4 +137,10 @@ public class DNSServerConfigFragment extends ConfigFragment {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
Daedalus.configurations.save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ public class DNSServersFragment extends ToolbarFragment {
|
|||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
final View view = inflater.inflate(R.layout.fragment_dns_servers, container, false);
|
final View view = inflater.inflate(R.layout.fragment_dns_servers, container, false);
|
||||||
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView_dns_servers);
|
RecyclerView recyclerView = view.findViewById(R.id.recyclerView_dns_servers);
|
||||||
LinearLayoutManager manager = new LinearLayoutManager(getActivity());
|
LinearLayoutManager manager = new LinearLayoutManager(getActivity());
|
||||||
recyclerView.setLayoutManager(manager);
|
recyclerView.setLayoutManager(manager);
|
||||||
adapter = new DNSServerAdapter();
|
adapter = new DNSServerAdapter();
|
||||||
|
@ -55,11 +55,11 @@ public class RuleConfigFragment extends ConfigFragment {
|
|||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
|
Daedalus.configurations.save();
|
||||||
stopThread();
|
stopThread();
|
||||||
intent = null;
|
intent = null;
|
||||||
mHandler.shutdown();
|
mHandler.shutdown();
|
||||||
mHandler = null;
|
mHandler = null;
|
||||||
Daedalus.configurations.save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void stopThread() {
|
private void stopThread() {
|
||||||
|
@ -27,7 +27,7 @@ abstract public class ToolbarFragment extends Fragment {
|
|||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
menu = ((NavigationView) getActivity().findViewById(R.id.nav_view)).getMenu();
|
menu = ((NavigationView) getActivity().findViewById(R.id.nav_view)).getMenu();
|
||||||
toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
|
toolbar = getActivity().findViewById(R.id.toolbar);
|
||||||
toolbar.getMenu().clear();
|
toolbar.getMenu().clear();
|
||||||
checkStatus();
|
checkStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user