mirror of
https://github.com/yuliskov/SmartTube.git
synced 2025-05-17 19:35:54 +08:00
kbd show fixes
This commit is contained in:
Submodule MediaServiceCore updated: 26dd1ccde6...ea75aaceb4
Submodule SharedModules updated: 0e74ba2529...142087192f
@ -7,6 +7,7 @@ import com.liskovsoft.mediaserviceinterfaces.MediaService;
|
||||
import com.liskovsoft.mediaserviceinterfaces.data.MediaGroup;
|
||||
import com.liskovsoft.mediaserviceinterfaces.data.SearchOptions;
|
||||
import com.liskovsoft.sharedutils.mylogger.Log;
|
||||
import com.liskovsoft.sharedutils.rx.RxHelper;
|
||||
import com.liskovsoft.smartyoutubetv2.common.R;
|
||||
import com.liskovsoft.smartyoutubetv2.common.app.models.data.Video;
|
||||
import com.liskovsoft.smartyoutubetv2.common.app.models.data.VideoGroup;
|
||||
@ -23,7 +24,6 @@ import com.liskovsoft.smartyoutubetv2.common.app.views.ViewManager;
|
||||
import com.liskovsoft.smartyoutubetv2.common.misc.MediaServiceManager;
|
||||
import com.liskovsoft.smartyoutubetv2.common.prefs.AccountsData;
|
||||
import com.liskovsoft.smartyoutubetv2.common.prefs.SearchData;
|
||||
import com.liskovsoft.sharedutils.rx.RxHelper;
|
||||
import com.liskovsoft.smartyoutubetv2.common.utils.AppDialogUtil;
|
||||
import com.liskovsoft.youtubeapi.service.YouTubeMediaService;
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
@ -136,13 +136,15 @@ public class SearchData {
|
||||
mIsInstantVoiceSearchEnabled = Helpers.parseBoolean(split, 0, false);
|
||||
mSearchOptions = Helpers.parseInt(split, 1, 0);
|
||||
mIsFocusOnResultsEnabled = Helpers.parseBoolean(split, 2, true);
|
||||
mIsKeyboardAutoShowEnabled = Helpers.parseBoolean(split, 3, false);
|
||||
//mIsKeyboardAutoShowEnabled = Helpers.parseBoolean(split, 3, false);
|
||||
mIsTempBackgroundModeEnabled = Helpers.parseBoolean(split, 4, false);
|
||||
//mIsAltSpeechRecognizerEnabled
|
||||
mSpeechRecognizerType = Helpers.parseInt(split, 6, SPEECH_RECOGNIZER_SYSTEM);
|
||||
mIsTrendingSearchesEnabled = Helpers.parseBoolean(split, 7, true);
|
||||
mIsSearchHistoryDisabled = Helpers.parseBoolean(split, 8, false);
|
||||
mIsPopularSearchesDisabled = Helpers.parseBoolean(split, 9, false);
|
||||
mIsKeyboardAutoShowEnabled = Helpers.parseBoolean(split, 10, true);
|
||||
|
||||
}
|
||||
|
||||
private void persistData() {
|
||||
|
@ -152,7 +152,7 @@ public class WebProxyDialog {
|
||||
LayoutInflater inflater = LayoutInflater.from(mContext);
|
||||
View contentView = inflater.inflate(R.layout.web_proxy_dialog, null);
|
||||
|
||||
KeyHelpers.fixEnterKey(
|
||||
KeyHelpers.fixShowKeyboard(
|
||||
contentView.findViewById(R.id.proxy_host),
|
||||
contentView.findViewById(R.id.proxy_port),
|
||||
contentView.findViewById(R.id.proxy_username),
|
||||
|
@ -28,7 +28,7 @@ public class SimpleEditDialog {
|
||||
View contentView = inflater.inflate(R.layout.simple_edit_dialog, null);
|
||||
|
||||
EditText editField = contentView.findViewById(R.id.simple_edit_value);
|
||||
KeyHelpers.fixEnterKey(editField);
|
||||
KeyHelpers.fixShowKeyboard(editField);
|
||||
|
||||
editField.setText(defaultValue);
|
||||
|
||||
|
@ -6,4 +6,5 @@ android.jetifier.blacklist=bcprov
|
||||
# Get ready for minification
|
||||
android.enableR8.fullMode=true
|
||||
# Minification ram usage fix
|
||||
org.gradle.jvmargs=-Xmx1024m
|
||||
#org.gradle.jvmargs=-Xmx1024m
|
||||
org.gradle.jvmargs=-Xmx1500m
|
@ -59,8 +59,8 @@ android {
|
||||
applicationId "com.liskovsoft.smarttubetv"
|
||||
minSdkVersion project.properties.minSdkVersion
|
||||
targetSdkVersion project.properties.targetSdkVersion
|
||||
versionCode 1195
|
||||
versionName "20.05"
|
||||
versionCode 1197
|
||||
versionName "20.07"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
|
||||
|
||||
|
@ -344,7 +344,7 @@ public class SearchSupportFragment extends Fragment {
|
||||
}
|
||||
|
||||
if (mIsKeyboardAutoShowEnabled && focused) {
|
||||
Helpers.showKeyboard(v.getContext());
|
||||
Helpers.showKeyboardAlt(v.getContext(), v);
|
||||
}
|
||||
});
|
||||
mSearchTextEditor.addTextChangedListener(new TextWatcher() {
|
||||
@ -363,7 +363,9 @@ public class SearchSupportFragment extends Fragment {
|
||||
Utils.enableScreensaver(getActivity(), true);
|
||||
}
|
||||
});
|
||||
KeyHelpers.fixEnterKey(mSearchTextEditor);
|
||||
if (!mIsKeyboardAutoShowEnabled) {
|
||||
KeyHelpers.fixEnterKey(mSearchTextEditor);
|
||||
}
|
||||
// BUGFIX: focus lost with keyboard???
|
||||
//mSearchTextEditor.setOnKeyboardDismissListener(this::focusOnSearchField);
|
||||
|
||||
|
Reference in New Issue
Block a user