mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Revert "Delegate haptic feedback to activity"
This reverts commit 729cffd36b.
This commit is contained in:
@@ -90,7 +90,6 @@ import android.view.MenuItem;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.webkit.MimeTypeMap;
|
||||
import android.widget.AdapterView;
|
||||
@@ -7416,11 +7415,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
} else if (action == R.id.action_send) {
|
||||
state = State.NONE;
|
||||
FragmentActivity activity = getActivity();
|
||||
Window window = (activity == null ? null : activity.getWindow());
|
||||
View decor = (window == null ? null : window.getDecorView());
|
||||
if (decor != null)
|
||||
decor.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
|
||||
view.performHapticFeedback(HapticFeedbackConstants.CONFIRM);
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user