RTL support for setting drawer lock mode at activity startup.
If setDrawerLockMode is called from application code in onCreate or
onResume, at that point DrawerLayout hasn't had its correct layout
direction applied yet.
Instead of mapping four gravities (left / right / start / end) into
two "absolute" ones, keep track of all possible four lock "locations"
and add primary / fallback paths in the getter.
Also properly save and restore the lock modes for all four supported
1 file changed