Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 6149b8a

Browse files
committed
Added ZLog.logException(e); when exception is caught
1 parent 2658143 commit 6149b8a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public void onClick(View v) {
330330
try {
331331
peopleAdapter.changeCursor(getPeopleCursorGenerator().call());
332332
} catch (Exception e) {
333-
e.printStackTrace();
333+
ZLog.logException(e);
334334
}
335335
//set search editText text empty
336336
etSearchPeople.setText("");
@@ -346,7 +346,7 @@ public void onClick(View v) {
346346
try {
347347
streamsDrawerAdapter.changeCursor(getSteamCursorGenerator().call());
348348
} catch (Exception e) {
349-
e.printStackTrace();
349+
ZLog.logException(e);
350350
}
351351
etSearchStream.setText("");
352352
}
@@ -597,6 +597,7 @@ private void setUpPeopleList() {
597597

598598
peopleDrawer.setAdapter(peopleAdapter);
599599
} catch (SQLException e) {
600+
ZLog.logException(e);
600601
throw new RuntimeException(e);
601602
} catch (Exception e) {
602603
ZLog.logException(e);
@@ -615,7 +616,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
615616
try {
616617
peopleAdapter.changeCursor(getPeopleCursorGenerator().call());
617618
} catch (Exception e) {
618-
e.printStackTrace();
619+
ZLog.logException(e);
619620
}
620621
}
621622

@@ -1102,6 +1103,7 @@ private void sendMessage() {
11021103
return;
11031104
}
11041105
} catch (SQLException e) {
1106+
ZLog.logException(e);
11051107
Log.e("SQLException", "SQL not correct", e);
11061108
}
11071109
}
@@ -1203,6 +1205,7 @@ public Cursor runQuery(CharSequence charSequence) {
12031205
try {
12041206
return makeStreamCursor(charSequence);
12051207
} catch (SQLException e) {
1208+
ZLog.logException(e);
12061209
Log.e("SQLException", "SQL not correct", e);
12071210
return null;
12081211
}
@@ -1225,6 +1228,7 @@ public Cursor runQuery(CharSequence charSequence) {
12251228
try {
12261229
return makeSubjectCursor(streamActv.getText().toString(), charSequence);
12271230
} catch (SQLException e) {
1231+
ZLog.logException(e);
12281232
Log.e("SQLException", "SQL not correct", e);
12291233
return null;
12301234
}
@@ -1257,6 +1261,7 @@ public Cursor runQuery(CharSequence charSequence) {
12571261
try {
12581262
return makePeopleCursor(charSequence);
12591263
} catch (SQLException e) {
1264+
ZLog.logException(e);
12601265
Log.e("SQLException", "SQL not correct", e);
12611266
return null;
12621267
}
@@ -1444,6 +1449,7 @@ private void processParams() {
14441449
.substring(getBaseContext().getPackageName()
14451450
.length() + 1));
14461451
} catch (IllegalArgumentException e) {
1452+
ZLog.logException(e);
14471453
Log.e(PARAMS, "Invalid app-specific intent specified.", e);
14481454
continue;
14491455
}

0 commit comments

Comments
 (0)