Merge branch 'TeamNewPipe:dev' into dev
This commit is contained in:
commit
fd5626e9e2
|
@ -262,7 +262,7 @@ dependencies {
|
||||||
implementation "com.nononsenseapps:filepicker:4.2.1"
|
implementation "com.nononsenseapps:filepicker:4.2.1"
|
||||||
|
|
||||||
// Crash reporting
|
// Crash reporting
|
||||||
implementation "ch.acra:acra-core:5.8.4"
|
implementation "ch.acra:acra-core:5.9.1"
|
||||||
|
|
||||||
// Properly restarting
|
// Properly restarting
|
||||||
implementation 'com.jakewharton:process-phoenix:2.1.2'
|
implementation 'com.jakewharton:process-phoenix:2.1.2'
|
||||||
|
|
|
@ -205,7 +205,7 @@ public class App extends MultiDexApplication {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final CoreConfigurationBuilder acraConfig = new CoreConfigurationBuilder(this)
|
final CoreConfigurationBuilder acraConfig = new CoreConfigurationBuilder()
|
||||||
.withBuildConfigClass(BuildConfig.class);
|
.withBuildConfigClass(BuildConfig.class);
|
||||||
ACRA.init(this, acraConfig);
|
ACRA.init(this, acraConfig);
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,10 @@ public final class PlayQueueActivity extends AppCompatActivity
|
||||||
getMenuInflater().inflate(R.menu.menu_play_queue, m);
|
getMenuInflater().inflate(R.menu.menu_play_queue, m);
|
||||||
getMenuInflater().inflate(R.menu.menu_play_queue_bg, m);
|
getMenuInflater().inflate(R.menu.menu_play_queue_bg, m);
|
||||||
onMaybeMuteChanged();
|
onMaybeMuteChanged();
|
||||||
onPlaybackParameterChanged(player.getPlaybackParameters());
|
// to avoid null reference
|
||||||
|
if (player != null) {
|
||||||
|
onPlaybackParameterChanged(player.getPlaybackParameters());
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,19 @@ public final class KeyboardUtil {
|
||||||
if (editText.requestFocus()) {
|
if (editText.requestFocus()) {
|
||||||
final InputMethodManager imm = ContextCompat.getSystemService(activity,
|
final InputMethodManager imm = ContextCompat.getSystemService(activity,
|
||||||
InputMethodManager.class);
|
InputMethodManager.class);
|
||||||
imm.showSoftInput(editText, InputMethodManager.SHOW_FORCED);
|
if (!imm.showSoftInput(editText, InputMethodManager.SHOW_FORCED)) {
|
||||||
|
/*
|
||||||
|
* Sometimes the keyboard can't be shown because Android's ImeFocusController is in
|
||||||
|
* a incorrect state e.g. when animations are disabled or the unfocus event of the
|
||||||
|
* previous view arrives in the wrong moment (see #7647 for details).
|
||||||
|
* The invalid state can be fixed by to re-focusing the editText.
|
||||||
|
*/
|
||||||
|
editText.clearFocus();
|
||||||
|
editText.requestFocus();
|
||||||
|
|
||||||
|
// Try again
|
||||||
|
imm.showSoftInput(editText, InputMethodManager.SHOW_FORCED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue