diff --git a/app/build.gradle b/app/build.gradle index 946539e2a..d9418cbe4 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "org.dslul.openboard.inputmethod.latin" minSdkVersion 14 targetSdkVersion 29 - versionCode 1 - versionName "1.0" + versionCode 3 + versionName "1.1" } buildTypes { diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/dictionarypack/DictionarySettingsFragment.java b/app/src/main/java/org/dslul/openboard/inputmethod/dictionarypack/DictionarySettingsFragment.java index f6e5d7bf1..18d4f2ee9 100644 --- a/app/src/main/java/org/dslul/openboard/inputmethod/dictionarypack/DictionarySettingsFragment.java +++ b/app/src/main/java/org/dslul/openboard/inputmethod/dictionarypack/DictionarySettingsFragment.java @@ -64,7 +64,7 @@ public final class DictionarySettingsFragment extends PreferenceFragment private View mLoadingView; private String mClientId; - private ConnectivityManager mConnectivityManager; + //private ConnectivityManager mConnectivityManager; private MenuItem mUpdateNowMenu; private boolean mChangedSettings; private DictionaryListInterfaceState mDictionaryListInterfaceState = @@ -98,8 +98,8 @@ public void onActivityCreated(final Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); final Activity activity = getActivity(); mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT); - mConnectivityManager = - (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE); + /*mConnectivityManager = + (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE);*/ addPreferencesFromResource(R.xml.dictionary_settings); refreshInterface(); setHasOptionsMenu(true); @@ -224,9 +224,11 @@ private WordListPreference findWordListPreference(final String id) { public void updateCycleCompleted() {} void refreshNetworkState() { + /* NetworkInfo info = mConnectivityManager.getActiveNetworkInfo(); boolean isConnected = null == info ? false : info.isConnected(); - if (null != mUpdateNowMenu) mUpdateNowMenu.setEnabled(isConnected); + */ + if (null != mUpdateNowMenu) mUpdateNowMenu.setEnabled(false); } void refreshInterface() {