question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: No internet connection SnackBar keeps showing even with Internet connection while changing themes!

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

A bug happened when I was trying to change the themes too fast. It is a bit tricky to reproduce, you will need to select a theme a few times, and then Boom!, you will see the snake Bar.

I’ve tested it on the latest emulator API 33. It would be so great to check it on a Physical device as well.

Screenshot:

Proof:

https://i.imgur.com/ki8d9sY.mp4

Relevant logcat output

--------- beginning of main
--------- beginning of system
2022-11-11 21:53:58.671  1576-1576  studio.deploy           pid-1576                             E  Could not remove dir '/data/data/com.google.samples.apps.nowinandroid.demo.debug/code_cache/.ll/': No such file or directory
2022-11-11 21:55:34.461  4994-4994  studio.deploy           pid-4994                             E  Could not remove dir '/data/data/com.google.samples.apps.nowinandroid.demo.debug/code_cache/.ll/': No such file or directory
2022-11-11 21:56:21.357  5211-5211  studio.deploy           pid-5211                             E  Could not remove dir '/data/data/com.google.samples.apps.nowinandroid.demo.debug/code_cache/.ll/': No such file or directory
---------------------------- PROCESS STARTED (5223) for package com.google.samples.apps.nowinandroid.demo.debug ----------------------------
2022-11-11 21:56:21.782  5223-5223  ziparchive              com....apps.nowinandroid.demo.debug  W  Unable to open '/data/app/~~aeCUpu2cizf6Y8W2LfsoLg==/com.google.samples.apps.nowinandroid.demo.debug-4FrqWk7TSLb8bqM4SV7wiQ==/base.dm': No such file or directory
2022-11-11 21:56:21.782  5223-5223  ziparchive              com....apps.nowinandroid.demo.debug  W  Unable to open '/data/app/~~aeCUpu2cizf6Y8W2LfsoLg==/com.google.samples.apps.nowinandroid.demo.debug-4FrqWk7TSLb8bqM4SV7wiQ==/base.dm': No such file or directory
2022-11-11 21:56:22.117  5223-5223  GraphicsEnvironment     com....apps.nowinandroid.demo.debug  V  ANGLE Developer option for 'com.google.samples.apps.nowinandroid.demo.debug' set to: 'default'
2022-11-11 21:56:22.117  5223-5223  GraphicsEnvironment     com....apps.nowinandroid.demo.debug  V  ANGLE GameManagerService for com.google.samples.apps.nowinandroid.demo.debug: false
2022-11-11 21:56:22.117  5223-5223  GraphicsEnvironment     com....apps.nowinandroid.demo.debug  V  Neither updatable production driver nor prerelease driver is supported.
2022-11-11 21:56:22.121  5223-5223  NetworkSecurityConfig   com....apps.nowinandroid.demo.debug  D  No Network Security Config specified, using platform default
2022-11-11 21:56:22.122  5223-5223  NetworkSecurityConfig   com....apps.nowinandroid.demo.debug  D  No Network Security Config specified, using platform default
2022-11-11 21:56:22.138  5223-5223  WM-WrkMgrInitializer    com....apps.nowinandroid.demo.debug  D  Initializing WorkManager with default configuration.
2022-11-11 21:56:22.181  5223-5255  libEGL                  com....apps.nowinandroid.demo.debug  D  loaded /vendor/lib64/egl/libEGL_emulation.so
2022-11-11 21:56:22.183  5223-5255  libEGL                  com....apps.nowinandroid.demo.debug  D  loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
2022-11-11 21:56:22.185  5223-5255  libEGL                  com....apps.nowinandroid.demo.debug  D  loaded /vendor/lib64/egl/libGLESv2_emulation.so
2022-11-11 21:56:22.185  5223-5252  Compatibil...geReporter com....apps.nowinandroid.demo.debug  D  Compat change id reported: 160794467; UID 10158; state: ENABLED
2022-11-11 21:56:22.204  5223-5256  Compatibil...geReporter com....apps.nowinandroid.demo.debug  D  Compat change id reported: 194532703; UID 10158; state: ENABLED
2022-11-11 21:56:22.339  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  createUnique: call
2022-11-11 21:56:22.339  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  HostConnection::get() New Host Connection established 0xb4000071c6a0ced0, tid 5253
2022-11-11 21:56:22.343  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 
2022-11-11 21:56:22.351  5223-5253  OpenGLRenderer          com....apps.nowinandroid.demo.debug  W  Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2022-11-11 21:56:22.351  5223-5253  OpenGLRenderer          com....apps.nowinandroid.demo.debug  W  Failed to initialize 101010-2 format, error = EGL_SUCCESS
2022-11-11 21:56:22.352  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  eglCreateContext: 0xb4000071c6a0fa50: maj 3 min 0 rcv 3
2022-11-11 21:56:22.354  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  eglMakeCurrent: 0xb4000071c6a0fa50: ver 3 0 (tinfo 0x73f0fcd080) (first time)
2022-11-11 21:56:22.377  5223-5253  Gralloc4                com....apps.nowinandroid.demo.debug  I  mapper 4.x is not supported
2022-11-11 21:56:22.379  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  createUnique: call
2022-11-11 21:56:22.379  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  HostConnection::get() New Host Connection established 0xb4000071c6a0e010, tid 5253
2022-11-11 21:56:22.379  5223-5253  goldfish-address-space  com....apps.nowinandroid.demo.debug  D  allocate: Ask for block of size 0x100
2022-11-11 21:56:22.379  5223-5253  goldfish-address-space  com....apps.nowinandroid.demo.debug  D  allocate: ioctl allocate returned offset 0x1f3ff8000 size 0x8000
2022-11-11 21:56:22.382  5223-5253  Gralloc4                com....apps.nowinandroid.demo.debug  W  allocator 4.x is not supported
2022-11-11 21:56:22.387  5223-5253  HostConnection          com....apps.nowinandroid.demo.debug  D  HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 
2022-11-11 21:56:22.442  5223-5223  roid.demo.debug         com....apps.nowinandroid.demo.debug  W  Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
                                                                                                    Common causes for lock verification issues are non-optimized dex code
                                                                                                    and incorrect proguard optimizations.
2022-11-11 21:56:22.442  5223-5223  roid.demo.debug         com....apps.nowinandroid.demo.debug  W  Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2022-11-11 21:56:22.443  5223-5223  roid.demo.debug         com....apps.nowinandroid.demo.debug  W  Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2022-11-11 21:56:22.498  5223-5223  Compatibil...geReporter com....apps.nowinandroid.demo.debug  D  Compat change id reported: 171228096; UID 10158; state: ENABLED
2022-11-11 21:56:22.631  5223-5253  Parcel                  com....apps.nowinandroid.demo.debug  W  Expecting binder but got null!
2022-11-11 21:56:22.647  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=136668439192, frameDurationUiNanos=304905912, frameDurationCpuNanos=350031870, frameOverrunNanos=367150746, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:22.747  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=137051772510, frameDurationUiNanos=78407510, frameDurationCpuNanos=97940969, frameOverrunNanos=64695179, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:22.896  5223-5258  WM-WorkerWrapper        com....apps.nowinandroid.demo.debug  I  Worker result SUCCESS for Work [ id=8347fa65-f8a0-46db-a49c-87e8e5c8dea8, tags={ com.google.samples.apps.nowinandroid.sync.workers.DelegatingWorker } ]
2022-11-11 21:56:22.978  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=137189377741, frameDurationUiNanos=197586016, frameDurationCpuNanos=210647224, frameOverrunNanos=194091308, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:22.997  5223-5278  HostConnection          com....apps.nowinandroid.demo.debug  D  createUnique: call
2022-11-11 21:56:22.999  5223-5278  HostConnection          com....apps.nowinandroid.demo.debug  D  HostConnection::get() New Host Connection established 0xb4000071c6a16e90, tid 5278
2022-11-11 21:56:23.005  5223-5278  HostConnection          com....apps.nowinandroid.demo.debug  D  HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 
2022-11-11 21:56:23.006  5223-5278  OpenGLRenderer          com....apps.nowinandroid.demo.debug  W  Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2022-11-11 21:56:23.007  5223-5278  OpenGLRenderer          com....apps.nowinandroid.demo.debug  W  Failed to initialize 101010-2 format, error = EGL_SUCCESS
2022-11-11 21:56:23.011  5223-5278  EGL_emulation           com....apps.nowinandroid.demo.debug  D  eglCreateContext: 0xb4000071c6a18090: maj 3 min 0 rcv 3
2022-11-11 21:56:23.011  5223-5278  EGL_emulation           com....apps.nowinandroid.demo.debug  D  eglMakeCurrent: 0xb4000071c6a18090: ver 3 0 (tinfo 0x73f0fcd100) (first time)
2022-11-11 21:56:23.012  5223-5270  HostConnection          com....apps.nowinandroid.demo.debug  D  createUnique: call
2022-11-11 21:56:23.022  5223-5270  HostConnection          com....apps.nowinandroid.demo.debug  D  HostConnection::get() New Host Connection established 0xb4000071c6a17d90, tid 5270
2022-11-11 21:56:23.027  5223-5270  HostConnection          com....apps.nowinandroid.demo.debug  D  HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 
2022-11-11 21:56:23.031  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=137386963757, frameDurationUiNanos=238455350, frameDurationCpuNanos=247485183, frameOverrunNanos=214229601, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:23.050  5223-5279  TrafficStats            com....apps.nowinandroid.demo.debug  D  tagSocket(132) with statsTag=0xffffffff, statsUid=-1
2022-11-11 21:56:24.301  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=33.82ms min=1.25ms max=739.92ms count=37
2022-11-11 21:56:27.996  5223-5320  ProfileInstaller        com....apps.nowinandroid.demo.debug  D  Installing profile for com.google.samples.apps.nowinandroid.demo.debug
2022-11-11 21:56:28.007  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=3705.23ms min=3705.23ms max=3705.23ms count=1
2022-11-11 21:56:28.051  5223-5223  OnBackInvokedCallback   com....apps.nowinandroid.demo.debug  W  OnBackInvokedCallback is not enabled for the application.
                                                                                                    Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
2022-11-11 21:56:28.123  5223-5253  Parcel                  com....apps.nowinandroid.demo.debug  W  Expecting binder but got null!
2022-11-11 21:56:28.145  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=142523196065, frameDurationUiNanos=74665688, frameDurationCpuNanos=76853688, frameOverrunNanos=43715606, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:29.145  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=48.65ms min=7.01ms max=707.08ms count=21
2022-11-11 21:56:29.543  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=27.91ms min=10.06ms max=645.79ms count=55
2022-11-11 21:56:29.561  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=143885105570, frameDurationUiNanos=64670120, frameDurationCpuNanos=68295245, frameOverrunNanos=51832121, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:29.579  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=143949775690, frameDurationUiNanos=76910080, frameDurationCpuNanos=78584288, frameOverrunNanos=50730206, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:29.911  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=144268438888, frameDurationUiNanos=47788636, frameDurationCpuNanos=49323552, frameOverrunNanos=32802803, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:30.147  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.92ms min=14.28ms max=34.30ms count=59
2022-11-11 21:56:30.397  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=144751772202, frameDurationUiNanos=40020281, frameDurationCpuNanos=41444489, frameOverrunNanos=35785490, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:31.100  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=194.57ms min=9.40ms max=700.31ms count=8
2022-11-11 21:56:31.111  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=145468438840, frameDurationUiNanos=38695726, frameDurationCpuNanos=41246435, frameOverrunNanos=25166394, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:31.147  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.61ms min=12.87ms max=19.84ms count=60
2022-11-11 21:56:31.444  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=145801772160, frameDurationUiNanos=42135031, frameDurationCpuNanos=44147823, frameOverrunNanos=33961407, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:31.705  5223-5235  System                  com....apps.nowinandroid.demo.debug  W  A resource failed to call close. 
2022-11-11 21:56:32.162  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.91ms min=14.49ms max=33.61ms count=60
2022-11-11 21:56:32.217  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=186.09ms min=11.46ms max=484.33ms count=6
2022-11-11 21:56:32.229  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=146585105462, frameDurationUiNanos=40068938, frameDurationCpuNanos=41660772, frameOverrunNanos=34381481, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:33.180  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.84ms min=13.50ms max=30.34ms count=60
2022-11-11 21:56:33.250  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=256.53ms min=12.52ms max=521.43ms count=4
2022-11-11 21:56:33.595  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=147951772074, frameDurationUiNanos=34859577, frameDurationCpuNanos=36842702, frameOverrunNanos=20366036, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:34.196  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.53ms min=12.26ms max=20.04ms count=61
2022-11-11 21:56:34.858  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=267.97ms min=11.03ms max=838.59ms count=6
2022-11-11 21:56:35.211  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.81ms min=13.77ms max=31.92ms count=60
2022-11-11 21:56:36.213  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.56ms min=12.05ms max=20.05ms count=60
2022-11-11 21:56:36.450  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=396.48ms min=11.97ms max=844.64ms count=4
2022-11-11 21:56:37.214  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.55ms min=12.77ms max=19.56ms count=60
2022-11-11 21:56:37.859  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=352.20ms min=11.27ms max=708.88ms count=4
2022-11-11 21:56:38.214  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.74ms min=12.86ms max=33.49ms count=59
2022-11-11 21:56:39.230  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.81ms min=12.86ms max=33.19ms count=60
2022-11-11 21:56:39.455  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=265.02ms min=11.22ms max=920.27ms count=6
2022-11-11 21:56:40.247  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.50ms min=13.37ms max=19.35ms count=61
2022-11-11 21:56:40.572  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=186.22ms min=10.84ms max=419.84ms count=6
2022-11-11 21:56:41.262  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.43ms min=13.23ms max=19.01ms count=61
2022-11-11 21:56:41.887  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=219.17ms min=11.04ms max=758.50ms count=6
2022-11-11 21:56:42.280  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.78ms min=12.47ms max=33.31ms count=60
2022-11-11 21:56:43.280  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.52ms min=9.66ms max=26.06ms count=60
2022-11-11 21:56:45.563  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=46.41ms min=11.39ms max=681.19ms count=22
2022-11-11 21:56:45.943  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=690.75ms min=3.63ms max=1377.87ms count=2
2022-11-11 21:56:45.963  5223-5262  NiA Jank                com....apps.nowinandroid.demo.debug  V  FrameData(frameStartNanos=160301771580, frameDurationUiNanos=48490577, frameDurationCpuNanos=51611118, frameOverrunNanos=50257911, isJank=true, states=[Navigation: for_you_route])
2022-11-11 21:56:46.563  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.58ms min=12.11ms max=20.08ms count=60
2022-11-11 21:56:47.118  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=293.37ms min=10.61ms max=871.09ms count=4
2022-11-11 21:56:47.578  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.46ms min=12.92ms max=20.95ms count=61
2022-11-11 21:56:48.221  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=275.56ms min=10.02ms max=870.68ms count=4
2022-11-11 21:56:48.580  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.61ms min=14.10ms max=18.90ms count=60
2022-11-11 21:56:49.580  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.41ms min=13.33ms max=19.46ms count=60
2022-11-11 21:56:49.607  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=693.10ms min=11.99ms max=1374.21ms count=2
2022-11-11 21:56:50.594  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.34ms min=13.56ms max=19.47ms count=61
2022-11-11 21:56:50.968  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=340.20ms min=11.37ms max=772.04ms count=4
2022-11-11 21:56:51.597  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.76ms min=12.89ms max=36.11ms count=59
2022-11-11 21:56:52.614  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.47ms min=12.21ms max=19.84ms count=61
2022-11-11 21:56:52.988  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=504.98ms min=12.91ms max=1469.61ms count=4
2022-11-11 21:56:53.628  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.75ms min=13.71ms max=32.80ms count=60
2022-11-11 21:56:54.140  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=287.95ms min=7.43ms max=691.18ms count=4
2022-11-11 21:56:54.630  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.54ms min=13.61ms max=19.27ms count=60
2022-11-11 21:57:07.493  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=612.43ms min=13.90ms max=12531.29ms count=21
2022-11-11 21:57:07.520  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=6690.13ms min=11.33ms max=13368.93ms count=2
2022-11-11 21:57:08.494  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.46ms min=13.49ms max=18.85ms count=60
2022-11-11 21:57:08.583  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=265.64ms min=11.65ms max=584.98ms count=4
2022-11-11 21:57:09.497  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.52ms min=5.35ms max=28.34ms count=60
2022-11-11 21:57:10.040  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=242.54ms min=9.71ms max=570.12ms count=6
2022-11-11 21:57:10.513  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=14.52ms min=1.07ms max=18.95ms count=60
2022-11-11 21:57:11.151  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=277.68ms min=11.37ms max=548.01ms count=4
2022-11-11 21:57:11.528  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.41ms min=13.13ms max=19.98ms count=61
2022-11-11 21:57:12.170  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=254.81ms min=11.00ms max=772.37ms count=4
2022-11-11 21:57:12.530  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.47ms min=12.65ms max=19.96ms count=60
2022-11-11 21:57:13.530  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.41ms min=13.03ms max=19.96ms count=60
2022-11-11 21:57:13.753  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=395.65ms min=9.51ms max=968.88ms count=4
2022-11-11 21:57:14.547  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.49ms min=4.10ms max=28.13ms count=61
2022-11-11 21:57:14.855  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=183.77ms min=9.24ms max=608.06ms count=6
2022-11-11 21:57:15.547  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.43ms min=7.10ms max=22.84ms count=60
2022-11-11 21:57:16.561  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.28ms min=13.21ms max=18.84ms count=61
2022-11-11 21:57:16.715  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=309.99ms min=9.92ms max=884.65ms count=6
2022-11-11 21:57:17.562  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.63ms min=12.99ms max=33.57ms count=59
2022-11-11 21:57:18.563  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.40ms min=12.78ms max=19.65ms count=60
2022-11-11 21:57:18.582  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=466.68ms min=7.42ms max=1221.50ms count=4
2022-11-11 21:57:19.574  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.95ms min=12.05ms max=34.96ms count=59
2022-11-11 21:57:20.183  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=400.15ms min=13.26ms max=971.01ms count=4
2022-11-11 21:57:20.580  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.44ms min=4.16ms max=34.77ms count=60
2022-11-11 21:57:21.248  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=266.04ms min=12.06ms max=603.03ms count=4
2022-11-11 21:57:21.594  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.57ms min=13.07ms max=33.33ms count=60
2022-11-11 21:57:22.421  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=586.19ms min=15.98ms max=1156.40ms count=2
2022-11-11 21:57:22.594  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.43ms min=13.49ms max=18.54ms count=60
2022-11-11 21:57:23.432  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=505.74ms min=7.35ms max=1004.13ms count=2
2022-11-11 21:57:23.594  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.67ms min=13.55ms max=31.19ms count=59
2022-11-11 21:57:24.596  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=16.36ms min=13.04ms max=19.86ms count=60
2022-11-11 21:57:24.866  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=358.54ms min=14.36ms max=752.12ms count=4
2022-11-11 21:57:25.597  5223-5253  EGL_emulation           com....apps.nowinandroid.demo.debug  D  app_time_stats: avg=17.81ms min=12.73ms max=49.75ms count=55
---------------------------- PROCESS ENDED (5223) for package com.google.samples.apps.nowinandroid.demo.debug ----------------------------

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tunjidcommented, Nov 18, 2022

Fixed in #445.

1reaction
dturnercommented, Nov 18, 2022

I’m able to repro this:

  • Load app in emulator
  • Verify that snackbar is not shown
  • Disable mobile data only (not WiFi) by swiping down the quick settings from the top

Expected result

  • Snackbar is not shown because device still has internet connectivity through WiFi

Actual result

  • Snackbar is shown

Cause: https://github.com/android/nowinandroid/blob/c4debb74e7f1cffed9c3d6e07f5887044de0febb/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/util/ConnectivityManagerNetworkMonitor.kt#L51

registerNetworkCallback is used to register a callback for all networks (e.g. WiFi and mobile) which satisfy a given criteria, in our case this is NET_CAPABILITY_INTERNET. This means that when any one of those networks loses this capability, onLost will be called, triggering the snackbar. But if there is another network which still has internet then we shouldn’t set isOnline = false.

Read more comments on GitHub >

github_iconTop Results From Across the Web

constantly showing snackbar in case of no internet in flutter
But I want this snackbar not to go in the process where there is no internet, how can I do that? flutter ·...
Read more >
constantly showing snackbar in case of no internet in flutter ...
[Solved]-constantly showing snackbar in case of no internet in flutter-Flutter. You could create a boolean variable that save if true or false your...
Read more >
ImaginativeShohag/Oops-No-Internet - GitHub
No Internet ! Simple no Internet dialogs and snackbar, which will automatically appear and disappear based on Internet connectivity status.
Read more >
How to Check Internet Connection in Android with No Internet ...
Open a new project. We will be working on Empty Activity with language as Java. Leave all other options unchanged. You can change...
Read more >
Managing The Network Connections With Snackbar Views
Most mobile apps need an internet connection to work properly and you, as the developer, are responsible for responding to changes of the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found