Bug fixes
This commit is contained in:
parent
6d0cbbf62d
commit
7037c7ea86
@ -70,12 +70,6 @@ public class AdditionalKeyboardView extends HorizontalScrollView implements View
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isInPictureInPictureMode()) {
|
|
||||||
if (getVisibility() != View.GONE)
|
|
||||||
setVisibility(View.GONE);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Rect r = new Rect();
|
Rect r = new Rect();
|
||||||
getWindowVisibleDisplayFrame(r);
|
getWindowVisibleDisplayFrame(r);
|
||||||
|
|
||||||
|
@ -116,8 +116,22 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onUserLeaveHint () {
|
public void onUserLeaveHint () {
|
||||||
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
if (preferences.getBooolean("PIP", true)) {
|
if (preferences.getBoolean("PIP", true)) {
|
||||||
enterPictureInPictureMode();
|
enterPictureInPictureMode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPictureInPictureModeChanged (boolean isInPictureInPictureMode, Configuration newConfig) {
|
||||||
|
if (isInPictureInPictureMode) {
|
||||||
|
if (getVisibility() != View.GONE)
|
||||||
|
setVisibility(View.GONE);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
if (getVisibility() != View.VISIBLE)
|
||||||
|
setVisibility(View.VISIBLE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user