mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-03 15:41:07 +01:00
Remove the bell shake animation
Fixes https://github.com/termux/termux-packages/issues/628 Fixes https://github.com/termux/termux-app/issues/222
This commit is contained in:
parent
b917acbbfa
commit
7c0ae4cb54
1 changed files with 0 additions and 6 deletions
|
|
@ -141,8 +141,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
||||||
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION).build()).build();
|
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION).build()).build();
|
||||||
int mBellSoundId;
|
int mBellSoundId;
|
||||||
|
|
||||||
Animation mOnBellAnimation;
|
|
||||||
|
|
||||||
private final BroadcastReceiver mBroadcastReceiever = new BroadcastReceiver() {
|
private final BroadcastReceiver mBroadcastReceiever = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
|
@ -213,8 +211,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
||||||
public void onCreate(Bundle bundle) {
|
public void onCreate(Bundle bundle) {
|
||||||
super.onCreate(bundle);
|
super.onCreate(bundle);
|
||||||
|
|
||||||
mOnBellAnimation = AnimationUtils.loadAnimation(this, R.anim.on_bell);
|
|
||||||
|
|
||||||
mSettings = new TermuxPreferences(this);
|
mSettings = new TermuxPreferences(this);
|
||||||
|
|
||||||
setContentView(R.layout.drawer_layout);
|
setContentView(R.layout.drawer_layout);
|
||||||
|
|
@ -410,8 +406,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
||||||
public void onBell(TerminalSession session) {
|
public void onBell(TerminalSession session) {
|
||||||
if (!mIsVisible) return;
|
if (!mIsVisible) return;
|
||||||
|
|
||||||
mTerminalView.startAnimation(mOnBellAnimation);
|
|
||||||
|
|
||||||
switch (mSettings.mBellBehaviour) {
|
switch (mSettings.mBellBehaviour) {
|
||||||
case TermuxPreferences.BELL_BEEP:
|
case TermuxPreferences.BELL_BEEP:
|
||||||
mBellSoundPool.play(mBellSoundId, 1.f, 1.f, 1, 0, 1.f);
|
mBellSoundPool.play(mBellSoundId, 1.f, 1.f, 1, 0, 1.f);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue