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

Commit c2d4fca

Browse files
jainkuniyatimabbott
authored andcommitted
lint: Fix current lint issue in use of e.printStackTrace.
1 parent 4fd159e commit c2d4fca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
651651
try {
652652
streamsDrawerAdapter.changeCursor(getSteamCursorGenerator().call());
653653
} catch (Exception e) {
654-
e.printStackTrace();
654+
ZLog.logException(e);
655655
}
656656
}
657657

app/src/main/java/com/zulip/android/networking/AsyncGetOldMessages.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.zulip.android.networking.response.GetMessagesResponse;
1212
import com.zulip.android.util.MessageListener;
1313
import com.zulip.android.util.MessageListener.LoadPosition;
14+
import com.zulip.android.util.ZLog;
1415

1516
import org.apache.commons.lang.time.StopWatch;
1617

@@ -211,7 +212,7 @@ protected boolean fetchMessages(int anchor, int numBefore, int numAfter,
211212
return false;
212213
}
213214
} catch (IOException e) {
214-
e.printStackTrace();
215+
ZLog.logException(e);
215216
return false;
216217
}
217218

0 commit comments

Comments
 (0)