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:
Fredrik Fornwall
2016-12-30 01:53:07 +01:00
parent b917acbbfa
commit 7c0ae4cb54

View File

@@ -141,8 +141,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION).build()).build();
int mBellSoundId;
Animation mOnBellAnimation;
private final BroadcastReceiver mBroadcastReceiever = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
@@ -213,8 +211,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
mOnBellAnimation = AnimationUtils.loadAnimation(this, R.anim.on_bell);
mSettings = new TermuxPreferences(this);
setContentView(R.layout.drawer_layout);
@@ -410,8 +406,6 @@ public final class TermuxActivity extends Activity implements ServiceConnection
public void onBell(TerminalSession session) {
if (!mIsVisible) return;
mTerminalView.startAnimation(mOnBellAnimation);
switch (mSettings.mBellBehaviour) {
case TermuxPreferences.BELL_BEEP:
mBellSoundPool.play(mBellSoundId, 1.f, 1.f, 1, 0, 1.f);