cleaning up logging
This commit is contained in:
parent
9b1e768226
commit
45d56ae601
|
@ -39,9 +39,6 @@ public class ConnectActivity extends AppCompatActivity {
|
|||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// Load identity and connect to addr. Enable appropriate buttons
|
||||
// If no identity, generate.
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(im.ricochet.androidod.R.layout.activity_connect);
|
||||
|
||||
|
@ -90,11 +87,11 @@ public class ConnectActivity extends AppCompatActivity {
|
|||
String privateKey = prefs.getString(PRIVATE_KEY_KEY, "");
|
||||
Log.i(TAG, "Private key loaded:\n"+privateKey);
|
||||
if (privateKey.equals("")) {
|
||||
Log.i(TAG, "regenerating pricate key");
|
||||
Log.i(TAG, "Generating pricate key");
|
||||
RegenIdentTask regenIdentTask = new RegenIdentTask();
|
||||
regenIdentTask.execute();
|
||||
} else {
|
||||
Log.i(TAG, "setting identity, enabling regen");
|
||||
Log.i(TAG, "Setting identity, Enabling regen");
|
||||
setIdentity(privateKey);
|
||||
Button regenButton = (Button)findViewById(R.id.regenIdentButton);
|
||||
regenButton.setEnabled(true);
|
||||
|
@ -149,7 +146,7 @@ public class ConnectActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
private void setIdentity(String privateKey) {
|
||||
Log.i(TAG, "setIdentity(): " + privateKey);
|
||||
Log.i(TAG, "setIdentity()");
|
||||
String addr = GoRicochetMobile.getOnionAddress(privateKey);
|
||||
Log.i(TAG, "setIdentity(): addr: '" + addr + "'");
|
||||
idetityText.setText("ricochet:" + addr);
|
||||
|
|
Loading…
Reference in New Issue