Skip to content

Commit

Permalink
Fix : Dialog Scroll Issue for devices below Android 10
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Mar 27, 2024
1 parent 4264164 commit f6aa8bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager.LayoutParams;
import fr.free.nrw.commons.R;
import fr.free.nrw.commons.databinding.DialogFeedbackBinding;
import fr.free.nrw.commons.feedback.model.Feedback;
import fr.free.nrw.commons.utils.ConfigUtils;
import fr.free.nrw.commons.utils.DeviceInfoUtil;
import java.util.Objects;

/**
* Feedback dialog that asks user for message and
Expand All @@ -28,6 +30,7 @@ public FeedbackDialog(Context context, OnFeedbackSubmitCallback onFeedbackSubmit
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dialogFeedbackBinding = DialogFeedbackBinding.inflate(getLayoutInflater());
Objects.requireNonNull(getWindow()).setSoftInputMode(LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
final View view = dialogFeedbackBinding.getRoot();
setContentView(view);
dialogFeedbackBinding.btnSubmitFeedback.setOnClickListener(new View.OnClickListener() {
Expand Down

0 comments on commit f6aa8bc

Please sign in to comment.