@@ -44,13 +44,13 @@ protected void onCreate(Bundle savedInstanceState) {
4444
4545 Log .d (this .getLogStart (), "created with name: " + this .name + " / " + this .uri );
4646
47- TextView topicTextView = (TextView ) findViewById (R .id .makanName );
47+ TextView topicTextView = (TextView ) findViewById (R .id .snChannelName );
4848 topicTextView .setText (this .name );
4949 }
5050
5151 public void onAddClick (View view ) {
5252 // get new message
53- EditText messageTextView = (EditText ) findViewById (R .id .makanMessage );
53+ EditText messageTextView = (EditText ) findViewById (R .id .snMessage );
5454
5555 String messageText = messageTextView .getText ().toString ();
5656
@@ -60,17 +60,16 @@ public void onAddClick(View view) {
6060 try {
6161
6262 // let's sort things out.
63- CharSequence topic = this .uri ;
6463 CharSequence sender =
6564 SNChannelsComponent .getSharkNetChannelComponent ().getOwnerID ();
6665 Set <CharSequence > recipients = new HashSet <>();
6766 recipients .add ("Alice" ); // TODO must come from GUI
68- boolean sign = false ; // TODO must come from GUI
69- boolean encrypt = false ; // TODO must come from GUI
67+ boolean sign = true ; // TODO must come from GUI
68+ boolean encrypt = true ; // TODO must come from GUI
7069 BasicKeyStore basicKeyStore =
7170 SNChannelsComponent .getSharkNetChannelComponent ().getBasicKeyStore ();
7271
73- byte [] content = "TestContent" .getBytes (); // TODO must come from GUI
72+ byte [] content = messageText .getBytes ();
7473
7574 byte [] serializedMessage = null ;
7675 serializedMessage = InMemoSNMessage .serializeMessage (
0 commit comments