Skip to content

Commit b671165

Browse files
romtsnstefanosiano
andauthored
Update sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java
Co-authored-by: Stefano <stefano.siano@sentry.io>
1 parent 669313a commit b671165

File tree

1 file changed

+2
-2
lines changed
  • sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android

1 file changed

+2
-2
lines changed

sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ protected void onCreate(Bundle savedInstanceState) {
8383
view -> {
8484
String fileName = Calendar.getInstance().getTimeInMillis() + "_file.txt";
8585
File file = getApplication().getFileStreamPath(fileName);
86-
try (final FileOutputStream fis =
86+
try (final FileOutputStream fos =
8787
SentryFileOutputStream.Factory.create(new FileOutputStream(file), file)) {
88-
FileChannel channel = fis.getChannel();
88+
FileChannel channel = fos.getChannel();
8989
channel.write(java.nio.ByteBuffer.wrap("Hello, World!".getBytes()));
9090
} catch (IOException e) {
9191
Sentry.captureException(e);

0 commit comments

Comments
 (0)