File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lgsnackbar/src/main/java/greco/lorenzo/com/lgsnackbar/core Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ In your app/build.gradle
3434
3535``` groovy
3636dependencies {
37- compile 'com.github.loregr:lgsnackbar:1.0.1 '
37+ compile 'com.github.loregr:lgsnackbar:1.0.2 '
3838}
3939```
4040
Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ public LGSnackbarPresenter(@NonNull LGSnackbar lgSnackbar) {
3939
4040 public void show () {
4141 WindowManager .LayoutParams layoutParams = createDefaultLayoutParams (WindowManager .LayoutParams .TYPE_TOAST , null );
42- windowManager . addView ( new FrameLayout (appplicationContext ) {
42+ FrameLayout rootFrame = new FrameLayout (appplicationContext ) {
4343 @ Override
4444 protected void onAttachedToWindow () {
4545 super .onAttachedToWindow ();
4646 onRootViewAvailable (this );
4747 }
4848
49- }, layoutParams );
49+ };
50+ rootFrame .setContentDescription ("LGSnackbar" );
51+ windowManager .addView (rootFrame , layoutParams );
5052 }
5153
5254 private void onRootViewAvailable (final FrameLayout rootView ) {
You can’t perform that action at this time.
0 commit comments