2016-02-13 06:54:44 +00:00
|
|
|
package eu.faircode.netguard;
|
|
|
|
|
|
|
|
/*
|
|
|
|
This file is part of NetGuard.
|
|
|
|
|
|
|
|
NetGuard is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
NetGuard is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
Copyright 2015-2016 by Marcel Bokhorst (M66B)
|
|
|
|
*/
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
import android.widget.ListView;
|
|
|
|
|
|
|
|
public class ActivityDns extends AppCompatActivity {
|
|
|
|
private static final String TAG = "NetGuard.DNS";
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
Util.setTheme(this);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.resolving);
|
|
|
|
|
|
|
|
getSupportActionBar().setTitle(R.string.setting_show_resolved);
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
|
|
|
|
|
|
ListView lvDns = (ListView) findViewById(R.id.lvDns);
|
2016-02-13 08:45:03 +00:00
|
|
|
lvDns.setAdapter(new AdapterDns(this, DatabaseHelper.getInstance(this).getDns()));
|
2016-02-13 06:54:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onDestroy() {
|
|
|
|
super.onDestroy();
|
|
|
|
}
|
|
|
|
}
|