From 8d53a3cb2711f867e836bdc357c53477fd5d96a1 Mon Sep 17 00:00:00 2001 From: Artem Umerov Date: Wed, 14 Jun 2023 22:50:22 +0300 Subject: [PATCH] 32 32 --- .../fenrir/activity/QuickAnswerActivity.kt | 8 +- .../base/AccountDependencyDialogFragment.kt | 4 +- .../fenrir/fragment/PreferencesFragment.kt | 63 +- .../LocalAudioAlbumsAdapter.kt | 13 + .../LocalAudioAlbumsFragment.kt | 7 +- .../fragment/base/AttachmentsViewBinder.kt | 33 +- .../ragnarok/fenrir/fragment/base/DocLink.kt | 2 +- .../fragment/base/PlaceSupportMvpFragment.kt | 2 +- .../fenrir/fragment/base/PostImage.kt | 2 +- .../fragment/comments/CommentsAdapter.kt | 2 +- .../fave/favepages/FavePagesAdapter.kt | 64 +- .../fave/faveposts/FavePostAdapter.kt | 2 +- .../fenrir/fragment/feed/FeedAdapter.kt | 2 +- .../NewsfeedCommentsAdapter.kt | 4 +- .../fragment/feedback/FeedbackViewBinder.kt | 35 +- .../messages/AbsMessageListPresenter.kt | 44 ++ .../fragment/messages/chat/ChatFragment.kt | 4 + .../fragment/messages/chat/MessagesAdapter.kt | 9 +- .../fenrir/fragment/wall/AbsWallFragment.kt | 3 + .../fenrir/fragment/wall/AbsWallPresenter.kt | 42 ++ .../fenrir/fragment/wall/WallAdapter.kt | 2 +- .../wall/wallpost/WallPostFragment.kt | 2 +- .../picasso/PicassoFileManagerHandler.kt | 112 +++- .../picasso/PicassoFullLocalRequestHandler.kt | 21 +- .../picasso/PicassoLocalRequestHandler.kt | 4 +- .../picasso/PicassoMediaMetadataHandler.kt | 2 +- .../ragnarok/fenrir/settings/OtherSettings.kt | 4 +- .../ragnarok/fenrir/util/CoverSafeResize.kt | 30 +- .../ragnarok/fenrir/view/AudioContainer.kt | 13 +- .../ragnarok/fenrir/view/CommentContainer.kt | 2 +- .../src/main/res/drawable-v24/is_friend.xml | 26 + app_fenrir/src/main/res/drawable/eye.xml | 12 + .../src/main/res/drawable/is_friend.xml | 10 + .../main/res/layout/entry_slidr_settings.xml | 8 +- .../src/main/res/layout/item_document.xml | 14 +- .../src/main/res/layout/item_fave_page.xml | 17 +- .../res/layout/local_audio_album_item.xml | 18 +- .../fragment/PreferencesFragment.kt | 60 +- .../picasso/PicassoFileManagerHandler.kt | 112 +++- .../filegallery/settings/MainSettings.kt | 4 +- .../filegallery/util/CoverSafeResize.kt | 28 +- .../main/res/layout/entry_slidr_settings.xml | 6 - build.gradle | 4 +- fenrir_common/src/main/res/raw/eye.json_lz4 | Bin 1562 -> 0 bytes .../src/main/res/raw/is_friend.json_lz4 | Bin 2142 -> 0 bytes .../ucrop/util/FastBitmapDrawable.java | 3 + libfenrir/src/main/jni/CMakeLists.txt | 1 + .../libyuv/include/libyuv/scale_row.h | 92 +++ .../animation/libyuv/include/libyuv/version.h | 2 +- .../animation/libyuv/source/rotate_argb.cc | 5 + .../main/jni/animation/libyuv/source/scale.cc | 29 + .../jni/animation/libyuv/source/scale_argb.cc | 20 + .../animation/libyuv/source/scale_neon64.cc | 95 --- .../jni/animation/libyuv/source/scale_rvv.cc | 606 ++++++++++++++++++ .../jni/animation/libyuv/source/scale_uv.cc | 20 + libfenrir/src/main/jni/thorvg/inc/thorvg.h | 102 ++- .../thorvg/src/lib/sw_engine/tvgSwCommon.h | 1 + .../thorvg/src/lib/sw_engine/tvgSwRaster.cpp | 21 +- .../thorvg/src/lib/sw_engine/tvgSwRasterC.h | 64 +- .../thorvg/src/lib/sw_engine/tvgSwStroke.cpp | 5 +- .../main/jni/thorvg/src/lib/tvgBinaryDesc.h | 14 +- .../src/main/jni/thorvg/src/lib/tvgCanvas.cpp | 11 +- .../main/jni/thorvg/src/lib/tvgCanvasImpl.h | 26 +- .../src/main/jni/thorvg/src/lib/tvgCommon.h | 2 +- .../src/main/jni/thorvg/src/lib/tvgFill.h | 2 +- .../src/main/jni/thorvg/src/lib/tvgLoader.cpp | 16 + .../src/main/jni/thorvg/src/lib/tvgPaint.cpp | 2 +- .../src/main/jni/thorvg/src/lib/tvgPaint.h | 10 +- .../main/jni/thorvg/src/lib/tvgPictureImpl.h | 2 +- .../src/main/jni/thorvg/src/lib/tvgRender.h | 10 +- .../src/main/jni/thorvg/src/lib/tvgScene.cpp | 14 +- .../main/jni/thorvg/src/lib/tvgSceneImpl.h | 69 +- .../src/main/jni/thorvg/src/lib/tvgShape.cpp | 16 + .../main/jni/thorvg/src/lib/tvgShapeImpl.h | 11 +- .../main/jni/thorvg/src/lib/tvgSwCanvas.cpp | 2 +- .../thorvg/src/loaders/svg/tvgSvgLoader.cpp | 25 + .../src/loaders/svg/tvgSvgLoaderCommon.h | 5 +- .../src/loaders/svg/tvgSvgSceneBuilder.cpp | 1 + .../com/squareup/picasso3/BitmapHunter.kt | 4 +- .../com/squareup/picasso3/BitmapSafeResize.kt | 4 +- .../com/squareup/picasso3/BitmapUtils.kt | 13 +- .../picasso3/ContentStreamRequestHandler.kt | 4 + .../squareup/picasso3/FileRequestHandler.kt | 4 + .../squareup/picasso3/MatrixTransformation.kt | 4 +- .../maxr1998/modernpreferences/Preferences.kt | 34 + .../modernpreferences/PreferencesAdapter.kt | 31 +- 86 files changed, 1762 insertions(+), 496 deletions(-) create mode 100644 app_fenrir/src/main/res/drawable-v24/is_friend.xml create mode 100644 app_fenrir/src/main/res/drawable/eye.xml create mode 100644 app_fenrir/src/main/res/drawable/is_friend.xml delete mode 100644 fenrir_common/src/main/res/raw/eye.json_lz4 delete mode 100644 fenrir_common/src/main/res/raw/is_friend.json_lz4 create mode 100644 libfenrir/src/main/jni/animation/libyuv/source/scale_rvv.cc diff --git a/app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/activity/QuickAnswerActivity.kt b/app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/activity/QuickAnswerActivity.kt index 79247bafd..f8698eb19 100644 --- a/app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/activity/QuickAnswerActivity.kt +++ b/app_fenrir/src/main/kotlin/dev/ragnarok/fenrir/activity/QuickAnswerActivity.kt @@ -174,7 +174,11 @@ class QuickAnswerActivity : AppCompatActivity() { AttachmentsViewBinder(this, object : OnAttachmentsActionCallback { override fun onPollOpen(poll: Poll) {} override fun onVideoPlay(video: Video) {} - override fun onAudioPlay(position: Int, audios: ArrayList