cleaning up logging

This commit is contained in:
Dan Ballard 2017-09-23 09:16:37 -07:00
parent 9b1e768226
commit 45d56ae601
1 changed files with 3 additions and 6 deletions

View File

@ -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);