Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private String readFacet() {
Properties props = new Properties();
props.load(in);
facetVal = props.getProperty("facetId");
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}
return facetVal.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void info(View view) {

public void regRequest(View view) {
// String username = Preferences.getSettingsParam("username");
String username = ((EditText) findViewById(R.id.editTextName)).getText().toString();
String username = ((EditText) findViewById(R.id.editTextName)).getText().toString().trim();
if (username.equals ("")) {
msg.setText("Username cannot be empty.");
return;
Expand Down Expand Up @@ -250,13 +250,14 @@ public void trxRequest(View view) {
}

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
Log.d(TAG, String.format("onActivityResult: requestCode=%d, resultCode=%d, data=%s",
requestCode, resultCode, new ArrayList<>(data.getExtras().keySet())));

if (data == null){
msg.setText("UAF Client didn't return any data. resultCode="+resultCode);
return;
}
//java.lang.NullPointerException may happened in data.getExtras()
Log.d(TAG, String.format("onActivityResult: requestCode=%d, resultCode=%d, data=%s",
requestCode, resultCode, new ArrayList<>(data.getExtras().keySet())));


Object[] array = data.getExtras().keySet().toArray();
StringBuffer extras = new StringBuffer();
Expand Down
1 change: 1 addition & 0 deletions fidouafclient/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
android:id="@+id/editTextName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:layout_toRightOf="@id/regButton"
/>

Expand Down