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
34
34
35
35
``` groovy
36
36
dependencies {
37
- compile 'com.github.loregr:lgsnackbar:1.0.1 '
37
+ compile 'com.github.loregr:lgsnackbar:1.0.2 '
38
38
}
39
39
```
40
40
Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ public LGSnackbarPresenter(@NonNull LGSnackbar lgSnackbar) {
39
39
40
40
public void show () {
41
41
WindowManager .LayoutParams layoutParams = createDefaultLayoutParams (WindowManager .LayoutParams .TYPE_TOAST , null );
42
- windowManager . addView ( new FrameLayout (appplicationContext ) {
42
+ FrameLayout rootFrame = new FrameLayout (appplicationContext ) {
43
43
@ Override
44
44
protected void onAttachedToWindow () {
45
45
super .onAttachedToWindow ();
46
46
onRootViewAvailable (this );
47
47
}
48
48
49
- }, layoutParams );
49
+ };
50
+ rootFrame .setContentDescription ("LGSnackbar" );
51
+ windowManager .addView (rootFrame , layoutParams );
50
52
}
51
53
52
54
private void onRootViewAvailable (final FrameLayout rootView ) {
You can’t perform that action at this time.
0 commit comments