Right to Left mode support for A11yMenu settings page
Fixes: 275571255 Test: install apk, then go to A11yMenu's settings page in the settings app with a right to left configuration Change-Id: I0a6d9f3cb8e75fa242ed9bbbb362f6954d4a1b15
This commit is contained in:
@@ -24,7 +24,9 @@ import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Browser;
|
||||
import android.provider.Settings;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
@@ -56,6 +58,13 @@ public class A11yMenuSettingsActivity extends FragmentActivity {
|
||||
initializeHelpAndFeedbackPreference();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
view.setLayoutDirection(
|
||||
view.getResources().getConfiguration().getLayoutDirection());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns large buttons settings state.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user