Added haptic feedback to swipe/refresh

master
M66B 2 months ago
parent fe92ef1c41
commit 6f66b299cf

@ -34,6 +34,7 @@ import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.HapticFeedbackConstants;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
@ -131,6 +132,7 @@ public class FragmentAccounts extends FragmentBase {
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
Helper.performHapticFeedback(swipeRefresh, HapticFeedbackConstants.CONFIRM);
onSwipeRefresh();
}
});

@ -34,6 +34,7 @@ import android.graphics.Rect;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.HapticFeedbackConstants;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
@ -197,6 +198,7 @@ public class FragmentFolders extends FragmentBase {
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
Helper.performHapticFeedback(swipeRefresh, HapticFeedbackConstants.CONFIRM);
onSwipeRefresh();
}
});

@ -683,6 +683,7 @@ public class FragmentMessages extends FragmentBase
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
Helper.performHapticFeedback(swipeRefresh, HapticFeedbackConstants.CONFIRM);
onSwipeRefresh();
}
});

Loading…
Cancel
Save