Skip to content

Commit c18e2bb

Browse files
committed
fixed bugs
1 parent 2b515e2 commit c18e2bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/src/main/java/nie/translator/rtranslatordevedition/voice_translation/_conversation_mode/PairingFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
270270
// because they are not passed to it if started with a Transaction and therefore it overlaps the status bar because it fitsSystemWindows does not work
271271
WindowInsets windowInsets = activity.getFragmentContainer().getRootWindowInsets();
272272
if (windowInsets != null) {
273-
constraintLayout.dispatchApplyWindowInsets(windowInsets);
273+
constraintLayout.dispatchApplyWindowInsets(windowInsets.replaceSystemWindowInsets(windowInsets.getSystemWindowInsetLeft(),windowInsets.getSystemWindowInsetTop(),windowInsets.getSystemWindowInsetRight(),0));
274274
}
275275

276276
// setting of listeners

app/src/main/java/nie/translator/rtranslatordevedition/voice_translation/_conversation_mode/_conversation/ConversationFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
102102
// to it if started with a Transaction and therefore it overlaps the status bar because fitsSystemWindows does not work
103103
WindowInsets windowInsets = activity.getFragmentContainer().getRootWindowInsets();
104104
if (windowInsets != null) {
105-
constraintLayout.dispatchApplyWindowInsets(windowInsets);
105+
constraintLayout.dispatchApplyWindowInsets(windowInsets.replaceSystemWindowInsets(windowInsets.getSystemWindowInsetLeft(),windowInsets.getSystemWindowInsetTop(),windowInsets.getSystemWindowInsetRight(),0));
106106
}
107107

108108
// insertion of the list of titles

app/src/main/java/nie/translator/rtranslatordevedition/voice_translation/_walkie_talkie_mode/_walkie_talkie/WalkieTalkieFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
135135
// because they are not passed to it if started with a Transaction and therefore it overlaps the status bar because it fitsSystemWindows does not work
136136
WindowInsets windowInsets = activity.getFragmentContainer().getRootWindowInsets();
137137
if (windowInsets != null) {
138-
constraintLayout.dispatchApplyWindowInsets(windowInsets);
138+
constraintLayout.dispatchApplyWindowInsets(windowInsets.replaceSystemWindowInsets(windowInsets.getSystemWindowInsetLeft(),windowInsets.getSystemWindowInsetTop(),windowInsets.getSystemWindowInsetRight(),0));
139139
}
140140

141141
exitButton.setOnClickListener(new View.OnClickListener() {

0 commit comments

Comments
 (0)