mirror of https://github.com/NekoX-Dev/NekoX.git
Fix stickerset drag
This commit is contained in:
parent
b709d28bff
commit
324c39dded
|
@ -1819,6 +1819,14 @@ public class EmojiView extends FrameLayout implements NotificationCenter.Notific
|
||||||
final MediaDataController mediaDataController = MediaDataController.getInstance(currentAccount);
|
final MediaDataController mediaDataController = MediaDataController.getInstance(currentAccount);
|
||||||
|
|
||||||
swapListElements(stickerSets, index1, index2);
|
swapListElements(stickerSets, index1, index2);
|
||||||
|
|
||||||
|
if (stickersTab.tabsContainer != null) {
|
||||||
|
for (int i = fromPosition; i <= toPosition && i < stickersTab.tabsContainer.getChildCount(); i++) {
|
||||||
|
View v = stickersTab.tabsContainer.getChildAt(i);
|
||||||
|
v.setTag(R.id.index_tag, i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (hasChatStickers) {
|
if (hasChatStickers) {
|
||||||
swapListElements(mediaDataController.getStickerSets(MediaDataController.TYPE_IMAGE), index1 - 1, index2 - 1);
|
swapListElements(mediaDataController.getStickerSets(MediaDataController.TYPE_IMAGE), index1 - 1, index2 - 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class ScrollSlidingTabStrip extends HorizontalScrollView {
|
||||||
private Type type = Type.LINE;
|
private Type type = Type.LINE;
|
||||||
private LinearLayout.LayoutParams defaultTabLayoutParams;
|
private LinearLayout.LayoutParams defaultTabLayoutParams;
|
||||||
private LinearLayout.LayoutParams defaultExpandLayoutParams;
|
private LinearLayout.LayoutParams defaultExpandLayoutParams;
|
||||||
private LinearLayout tabsContainer;
|
public LinearLayout tabsContainer;
|
||||||
private ScrollSlidingTabStripDelegate delegate;
|
private ScrollSlidingTabStripDelegate delegate;
|
||||||
private HashMap<String, View> tabTypes = new HashMap<>();
|
private HashMap<String, View> tabTypes = new HashMap<>();
|
||||||
private HashMap<String, View> prevTypes = new HashMap<>();
|
private HashMap<String, View> prevTypes = new HashMap<>();
|
||||||
|
|
Loading…
Reference in New Issue