OpenGL verification

This commit is contained in:
sergosm 2020-10-08 17:01:38 +03:00
parent 73e42e9557
commit 4faf931d20
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ public class DevelopmentSettingsFragment extends BaseSettingsFragment {
private void setupOpenglRenderPref() {
SwitchPreferenceEx useOpenglRender = findPreference(settings.USE_OPENGL_RENDER.getId());
if (app.getSettings().USE_OPENGL_RENDER.get() && NativeCoreContext.isInit()) {
if (Version.isOpenGlAvailable(app)) {
assert useOpenglRender != null;
useOpenglRender.setDescription(getString(R.string.use_opengl_render_descr));
useOpenglRender.setIconSpaceReserved(false);

View file

@ -111,7 +111,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
debug.addPreference(createCheckBoxPreference(settings.SHOULD_SHOW_FREE_VERSION_BANNER,
R.string.show_free_version_banner,
R.string.show_free_version_banner_description));
pref = new Preference(this);
pref.setTitle(R.string.test_voice_prompts);
pref.setSummary(R.string.play_commands_of_currently_selected_voice);