mirror of
https://github.com/vectras-team/termux-x11.git
synced 2024-11-27 17:00:38 +00:00
Bug fixes
This commit is contained in:
parent
6d0cbbf62d
commit
7037c7ea86
@ -70,12 +70,6 @@ public class AdditionalKeyboardView extends HorizontalScrollView implements View
|
||||
return;
|
||||
}
|
||||
|
||||
if (isInPictureInPictureMode()) {
|
||||
if (getVisibility() != View.GONE)
|
||||
setVisibility(View.GONE);
|
||||
return;
|
||||
}
|
||||
|
||||
Rect r = new Rect();
|
||||
getWindowVisibleDisplayFrame(r);
|
||||
|
||||
|
@ -116,8 +116,22 @@ public class MainActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onUserLeaveHint () {
|
||||
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
if (preferences.getBooolean("PIP", true)) {
|
||||
if (preferences.getBoolean("PIP", true)) {
|
||||
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