android – How to listen to the click and change the language instantly using list preferences

This is my code:
Public class SettingsPage extends AppCompatActivity {

@BindView (R.id.toolbar)
Tool bar tool bar;
@BindView (R.id.notification_setting)
RelativeLayout notification_setting;
@BindView (R.id.setting_back_image)
ImageView setting_back_image;


@Override
Protected void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_setting);
ButterKnife.bind (this);
setSupportActionBar (toolbar);

// Objects.requireNoNull (getSupportActionBar ()). SetDisplayHomeAsUpEnabled (true);
setting_back_image.setOnClickListener (v -> onBackPressed ());

                notification_setting.setOnClickListener (v -> {
Intention settingsIntent = null;
if (android.os.Build.VERSION.SDK_INT> = android.os.Build.VERSION_CODES.O) {
settingsIntent = new Intent (Settings.ACTION_APP_NOTIFICATION_SETTINGS)
.addFlags (Intent.FLAG_ACTIVITY_NEW_TASK)
.putExtra (Settings.EXTRA_APP_PACKAGE, getPackageName ())
.putExtra (Settings.EXTRA_CHANNEL_ID, 1)
}
startActivity (settingsIntent);
});
getFragmentManager (). beginTransaction (). replace (R.id.fragment_container, new MyPreferenceFragment ()). commit ();
}

public static class MyPreferenceFragment extends PreferenceFragment
{
@Override
public void onCreate (final set savedInstanceState)
{
super.onCreate (savedInstanceState);
addPreferencesFromResource (R.xml.preferences);
}
}