Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
App Compact Version: 1.6.1
Devices/Android versions reproduced on:
OS Version: Android 11
Phone: Samsung A50
Hi Team,
I was working on adding RTL support for my app. While working on the support I found that Gravity#End value is getting honoured by the Window of AppCompactFragment Dialog.
Code
class SimpleAppCompactFragment : AppCompatDialogFragment() {
private val TAG = SimpleAppCompactFragment::
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val dialog = super.onCreateDialog(savedInstanceState)
dialog.setCancelable(true)
if (dialog.window != null)
{
Log.d(TAG, "Yes I am not null")
}
// Here I have added gravity bottom end
dialog.window?.setGravity(Gravity.BOTTOM or Gravity.END)
return dialog
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.simple_dialog_fragment, null, false)
}
}
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screen record or screenshots showing the issue (if UI related).
I have attached Sample Demo describing the issue.