Users don't need to see the local Destination
This commit is contained in:
@@ -12,14 +12,11 @@ import com.androidplot.pie.PieChart;
|
||||
import com.androidplot.pie.Segment;
|
||||
import com.androidplot.pie.SegmentFormatter;
|
||||
|
||||
import net.i2p.data.Destination;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import i2p.bote.I2PBote;
|
||||
import i2p.bote.Util;
|
||||
import i2p.bote.network.BannedPeer;
|
||||
import i2p.bote.network.DhtPeerStats;
|
||||
import i2p.bote.network.RelayPeer;
|
||||
@@ -47,11 +44,6 @@ public class NetworkInfoFragment extends Fragment {
|
||||
mRelayPie = (PieChart) view.findViewById(R.id.relay_peers_pie);
|
||||
mRelayPeers = (TextView) view.findViewById(R.id.relay_peers);
|
||||
|
||||
Destination dest = I2PBote.getInstance().getLocalDestination();
|
||||
if (dest != null)
|
||||
((TextView) view.findViewById(R.id.local_destination)).setText(
|
||||
Util.toBase32(dest));
|
||||
|
||||
setupKademliaPeers();
|
||||
setupRelayPeers();
|
||||
|
||||
|
||||
@@ -16,20 +16,6 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/local_destination"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subject"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/local_destination"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/not_set"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Primary"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="@string/kademlia_peers"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Subject"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user