Michael Manganiello
935471d95c
Fix memory leak on BigImageViewer ( #1067 )
...
Leak found using LeakCanary. Steps:
1. Enable the LeakCanary dependency.
1. Open the app.
1. Open any post image, and go back.
According to `Piasy/BigImageViewer` documentation,
[Initialize section](9cc045e814/README.md (initialize)
),
the app context must be used to avoid memory leaks.
Leak trace:
```
2022-09-04 19:51:38.154 13332-13332/ml.docilealligator.infinityforreddit.debug D/LeakCanary:
┬───
│ GC Root: Thread object
│
├─ android.os.HandlerThread instance
│ Leaking: NO (PathClassLoader↓ is not leaking)
│ Thread name: 'LeakCanary-Heap-Dump'
│ ↓ Thread.contextClassLoader
├─ dalvik.system.PathClassLoader instance
│ Leaking: NO (BigImageViewer↓ is not leaking and A ClassLoader is never leaking)
│ ↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (BigImageViewer↓ is not leaking)
│ ↓ Object[257]
├─ com.github.piasy.biv.BigImageViewer class
│ Leaking: NO (a class is never leaking)
│ ↓ static BigImageViewer.sInstance
│ ~~~~~~~~~
├─ com.github.piasy.biv.BigImageViewer instance
│ Leaking: UNKNOWN
│ Retaining 969.9 kB in 14812 objects
│ ↓ BigImageViewer.mImageLoader
│ ~~~~~~~~~~~~
├─ com.github.piasy.biv.loader.glide.GlideImageLoader instance
│ Leaking: UNKNOWN
│ Retaining 969.9 kB in 14811 objects
│ ↓ GlideImageLoader.mRequestManager
│ ~~~~~~~~~~~~~~~
├─ com.bumptech.glide.RequestManager instance
│ Leaking: UNKNOWN
│ Retaining 969.9 kB in 14808 objects
│ context instance of ml.docilealligator.infinityforreddit.activities.ViewPostDetailActivity with mDestroyed = true
│ ↓ RequestManager.context
│ ~~~~~~~
╰→ ml.docilealligator.infinityforreddit.activities.ViewPostDetailActivity instance
Leaking: YES (ObjectWatcher was watching this because ml.docilealligator.infinityforreddit.activities.
ViewPostDetailActivity received Activity#onDestroy() callback and Activity#mDestroyed is true)
Retaining 966.2 kB in 14703 objects
key = f69c74cc-521e-4f6c-b5c8-8f787e27df75
watchDurationMillis = 5547
retainedDurationMillis = 541
mApplication instance of ml.docilealligator.infinityforreddit.Infinity
mBase instance of androidx.appcompat.view.ContextThemeWrapper
```
2022-09-09 10:03:07 +08:00
Docile-Alligator
7293b9e758
Update ExoPlayer.
2022-09-09 00:41:35 +10:00
Docile-Alligator
84b5b1d95d
Version 5.3.1.
2022-09-07 01:01:45 +10:00
Docile-Alligator
6d224c307d
Fix stupid Redgifs API issue.
2022-09-05 00:57:11 +10:00
Docile-Alligator
064b2ceedc
Version 5.3.0.
2022-08-27 11:55:58 +10:00
Docile-Alligator
0dc759e9c6
Minor bugs fixed.
2022-08-26 18:08:16 +10:00
Docile-Alligator
965d8ab8ae
Show an indicator for the current sort type.
2022-08-21 11:59:14 +10:00
Docile-Alligator
0c7e5bc16f
Show an indicator for the current sort type in SortTypeBottomSheetFragment.
2022-08-21 10:58:18 +10:00
Docile-Alligator
6bb208aa61
Version 5.3.0-beta1.
2022-08-16 17:18:03 +10:00
Docile-Alligator
af49571a63
Receive events in HistoryPostFragment.
2022-08-16 17:07:30 +10:00
Docile-Alligator
69c4ab96b9
Update Redgifs API.
2022-08-15 21:58:39 +10:00
Docile-Alligator
8b8a9073dd
Show urls in ShareLinkBottomSheetFragment.
2022-08-15 21:11:17 +10:00
Docile-Alligator
7d8e32320f
Apply custom theme to settings page.
2022-08-15 21:10:42 +10:00
Docile-Alligator
2750636847
Apply custom theme to the header of the navigation drawer.
2022-08-14 17:47:57 +10:00
Sergei Kozelko
7a0a40f696
Heading markdown fix ( #908 )
...
* Copy heading parser and adjust it to match Reddit behavior
Unlike CommonMark, Reddit does not require space after #. This behavior is
coded in a private static function, so the only way to override it is to
copy everything and use the modified copy instead of the default parser.
* Use RedditHeadingPlugin instead of regexes
* Apply plugins to post body when writing a comment
This fixes display when writing comment to a post
that contains spoilers or headings without space
* Apply plugins to parent comment body when writing a comment
This fixes display when replying to a comment that contains strikethrough text
2022-08-14 15:33:07 +08:00
Docile-Alligator
633ccc7f7d
Fix post content is not parsed in other types of posts.
2022-08-14 16:55:44 +10:00
Docile-Alligator
97dcc263e3
Fix saved comments not shown when clicking Saved option in the bottom navigation bar.
2022-08-13 13:35:30 +10:00
Docile-Alligator
da708748ba
Merge branch 'master' of github.com:Docile-Alligator/Infinity-For-Reddit
2022-08-13 12:25:29 +10:00
Docile-Alligator
e3f9d31a34
Fix caption shown under the navbar in ViewRedditGalleryImageOrGifFragment.
2022-08-13 12:25:04 +10:00
Wladimir Kirianov
1366ff0147
Merge pull request #844 from SenseiSchizo/feature/stringTypoFix
...
Fixed typos in strings.xml
2022-08-12 13:58:10 +02:00
Andrei Shpakovskiy
a12e65aa0e
Manage theme insertion callbacks behaviour ( #892 )
2022-08-12 18:36:14 +08:00
Docile-Alligator
fc73816a40
Extra small font size
2022-08-05 12:28:49 +10:00
Andrei Shpakovskiy
a18ae7d62e
Set default position of cursor at the end of query ( #842 )
2022-08-05 08:55:22 +08:00
Anatolii Afanasev
926e50090e
Move mAccessToken and mAccountName initialization upper ( #841 )
2022-08-05 08:53:20 +08:00
Sergei Kozelko
2bc9034c89
Apply FAB theme in CustomThemeListingActivity ( #857 )
2022-08-05 08:52:19 +08:00
Sergei Kozelko
8db3736dd4
Fix loading previews after quick scroll ( #861 )
...
* Request layout on ratio change
* Change imageView visibility on bind/recycle to force layout change
2022-08-05 08:22:35 +08:00
Docile-Alligator
3c0e2ab2d6
Clear user flair.
2022-08-04 14:05:34 +10:00
Docile-Alligator
9614f4a67a
Minor UI tweaks in ViewSubredditDetailActivity, ViewUserDetailActivity and CustomThemePreviewActivity.
2022-07-28 23:42:46 +10:00
Docile-Alligator
b4fb0fac13
Update translation contributors.
2022-07-28 22:13:38 +10:00
Docile-Alligator
6f4e9233b8
Remove Block User menu option in ViewUserDetailActivity since Reddit does not allow 3rd-party apps access this API now.
2022-07-28 00:31:48 +10:00
Nan
176d6ce7ef
Fix misinterpretation of strings
2022-07-21 20:21:26 -07:00
Nan
e0339aa076
Fixed typos
2022-07-21 20:14:54 -07:00
Docile-Alligator
55af125dfe
Fix changing post layout not working in HistoryActivity.
2022-07-19 10:30:59 +08:00
Docile-Alligator
a8d8e08323
Movable FAB in ViewPostDetailActivity.
2022-07-18 23:06:08 +08:00
Docile-Alligator
ce04d2bd77
Fix cannot go back from ViewMultiRedditDetailActivity.
2022-07-17 22:57:34 +08:00
Patrick Demers
5c0addbc91
Fix scroll using volume on multireddit ( #834 )
2022-07-17 22:48:42 +08:00
Docile-Alligator
12f404246b
Show the number of subscribers in SubredditAutocompleteRecyclerViewAdapter.
2022-07-16 00:25:35 +08:00
Docile-Alligator
1cb79742c7
Show the number of subscribers in SubredditListingRecyclerViewAdapter.
2022-07-15 18:02:11 +08:00
Docile-Alligator
0265ac6227
Add an option for History in the navigation drawer.
2022-07-15 11:54:08 +08:00
Docile-Alligator
d3f38f318e
Read posts history is available.
2022-07-13 22:05:19 +08:00
Docile-Alligator
14bf98d08a
Minor update to immersive interface.
2022-06-28 17:10:55 +08:00
Docile-Alligator
0736f86e17
Navigation rail in ViewMultiRedditDetailActivity.
2022-06-27 23:28:17 +08:00
Docile-Alligator
042834cc9b
Navigation rail in ViewUserDetailActivity.
2022-06-27 21:01:33 +08:00
Docile-Alligator
1f17f526f9
Navigation rail in ViewSubredditDetailActivity.
2022-06-27 19:38:48 +08:00
Docile-Alligator
d27140adf7
Fix java.lang.StringIndexOutOfBoundsException in LinkResolverActivity.getRedditUriByPath.
2022-06-27 18:04:19 +08:00
Docile-Alligator
974730db1a
Do not mux video and audio on Android 7 and below.
2022-06-27 17:55:22 +08:00
Docile-Alligator
42a935981d
Use Navigation Rail in MainActivity in landscape mode.
2022-06-18 22:54:26 +08:00
Docile-Alligator
e0da948d1f
Version 5.2.1.
2022-06-18 15:57:47 +08:00
Docile-Alligator
14235a11af
Fix an issue in Separate Post and Comments in Portrait Mode.
2022-06-17 16:42:18 +08:00
Antonin Curtit
bd70a166ed
Fix and improvements ( #741 )
...
* Fixed a whitespace causing errors for 2FA
* Fixed typo, improved compliance to FR syntax
2022-06-17 16:03:04 +08:00
MChen321
132bd354cd
Fixed bug that doesnt show user being followed ( #707 )
...
* In anonymous mode, fixed bug in CheckIsFollowingUser.java that does not check if accountName is null or not, which prevents room from retrieving SubscribedUserData to check if the user is followed or not.
Also updated Room version to 2.4.2 to be compatible with M1 macbook.
* Simplified SubscribedUserData accountName null check code
2022-06-17 15:51:20 +08:00
Winston Cooke
c6a06a10b2
Add locale-based separators ( #724 )
2022-06-17 15:36:38 +08:00
soredake
17b61b9d37
Rename "external browser" to "external app" to make it more clear ( #795 )
2022-06-15 21:50:43 +08:00
Docile-Alligator
b6162c1496
Fix app crashes when deleting media from notification.
2022-06-11 21:01:33 +08:00
Docile-Alligator
33c473824b
Fix Settings->Video->Easier to Watch in Full Screen not working in card layout 2.
2022-06-11 20:25:43 +08:00
Docile-Alligator
2ebc797a3b
Fix post layout not saved for anonymous multireddits.
2022-06-11 20:21:17 +08:00
Docile-Alligator
92cb309bf6
New option: Settings->Video->Easier to Watch in Full Screen.
2022-06-11 19:56:55 +08:00
Docile-Alligator
5d07ad2d3b
Version 5.2.0
2022-06-03 13:36:11 +08:00
Docile-Alligator
d88e182082
Add a link handler in SearchActivity.
2022-06-03 13:03:32 +08:00
Docile-Alligator
73c662159f
Disable auto correct when creating links.
2022-06-01 16:49:08 +08:00
Docile-Alligator
12ba414ea1
Request incognito keyboard in anonymous mode on Android 8+.
2022-06-01 16:46:04 +08:00
Docile-Alligator
f0747c65cb
Use EditText instead of SimpleSearchView in SearchActivity.
2022-06-01 15:41:01 +08:00
Docile-Alligator
adb77f44d0
Fix app crashes when applying Material You theme after changing wallpaper. Tweak the design of the fast scroller.
2022-06-01 14:53:30 +08:00
Docile-Alligator
db08be065e
Add a notification action to delete the media after downloading.
2022-05-31 18:00:21 +08:00
Docile-Alligator
7f91f89599
Share media file after downloading.
2022-05-31 16:18:16 +08:00
Docile-Alligator
3218ff10f1
Share a link to Infinity so that you can open reddit links in this app.
2022-05-30 23:20:44 +08:00
Docile-Alligator
b65e28b593
Version 5.2.0-beta2. Update translation.
2022-05-30 12:32:24 +08:00
Docile-Alligator
3e021cf25c
Version v5.2.0-beta2.
2022-05-30 12:01:28 +08:00
Docile-Alligator
8e8dc6f93b
Fix missing pendingintent mutability flag.
2022-05-20 09:20:17 +08:00
Docile-Alligator
3df7b761a2
Animate the software keyboard in ViewPrivateMessgesActivity.
2022-05-17 19:12:39 +08:00
Docile-Alligator
63ea1f54d0
Fix duplicate sent private messages.
2022-05-15 23:55:12 +08:00
Docile-Alligator
955329cb87
Fix app crashes when opening a very long private message.
2022-05-15 22:12:26 +08:00
Docile-Alligator
67d30b90e4
Fix inbox count not updating after reading a message.
2022-05-14 19:26:26 +08:00
Docile-Alligator
4f7d8321fc
Fix cannot share text to Infinity.
2022-05-14 19:17:09 +08:00
Docile-Alligator
33ac7e92df
Tweak UI in private messages.
2022-05-14 17:54:56 +08:00
Docile-Alligator
b75883c758
Render spoiler in PrivateMessagesDetailRecyclerViewAdapter.
2022-05-14 12:39:28 +08:00
Docile-Alligator
22cf0a9c20
Fix biometric authentication prompt not shown when opening the account section in the navigation drawer. Require biometric authentication in AccountChooserBottomSheetFragment.
2022-05-14 12:08:33 +08:00
Docile-Alligator
345392a833
Copy priate messages.
2022-05-13 20:18:07 +08:00
Docile-Alligator
9a994ca531
Do not show nsfw gif preview in case the blurring is not working. Fix bugs related to post filter in PostFragment.
2022-05-13 17:21:41 +08:00
Docile-Alligator
eab7943527
Fix disabling blur nsfw images not working in anonymous multireddits.
2022-04-30 22:37:49 +08:00
Docile-Alligator
3d374491b3
targetSdkVersion 31. Fix sort type problems in anonymous home page and multireddits.
2022-04-30 17:56:31 +08:00
Docile-Alligator
d40fc59540
Version v5.2.0-beta1.
2022-04-28 17:35:56 +08:00
Docile-Alligator
77ed06dac1
Submitting crosspost using other accounts is available.
2022-04-28 15:46:25 +08:00
Docile-Alligator
d9172110e6
Submitting comment using another comment is available.
2022-04-28 15:29:41 +08:00
Docile-Alligator
d64fdd4e4d
Submitting posts using another account is available in other PostXXXActivity.
2022-04-25 15:15:06 +08:00
Docile-Alligator
d922c67ffc
Load selected account's subscriptions in SubredditSelectionActivity when submitting posts using another account.
2022-04-24 11:48:41 +08:00
Docile-Alligator
be4e73c504
Submit posts using another account is available in PostTextActivity.
2022-04-24 11:11:15 +08:00
Docile-Alligator
3fa86984dc
Fix NullPointerException in Utils.parseInlineEmotes.
2022-04-23 21:36:25 +08:00
Docile-Alligator
05e9b8b36e
Fix a bug when setting up notification work manager in MainActivity.
2022-04-23 21:26:23 +08:00
Docile-Alligator
3283541c9a
Show post karma, comment karma, awarder karma and awardee karma in ViewUserDetailActivity by clicking the karma info text.
2022-04-10 22:50:35 +08:00
Docile-Alligator
ee9249cb64
Update inbox count in MainActivity after reading all messages in InboxActivity.
2022-04-10 17:52:06 +08:00
Docile-Alligator
bbd212ff2c
Click autoplaying videos to open them in fullscreen.
2022-04-10 09:40:16 +08:00
Docile-Alligator
e7da8c1f69
Bottom app bar is available in ViewMultiRedditDetailActivity.
2022-04-08 16:39:30 +08:00
Docile-Alligator
8c8dc45f19
Removed option: View Full Markdown. Handle jpeg link in LinkResolverActivity.
2022-04-02 22:41:10 +08:00
Docile-Alligator
d7fcb66cda
Use the updated access token to fetch new notifications in PullNotificationWorker. This may fix notification issues.
2022-04-02 22:26:35 +08:00
Docile-Alligator
840216b3d9
Render full markdown in CommentsListingRecyclerViewAdapter.
2022-04-02 16:09:16 +08:00
Docile-Alligator
95d792779e
Render full markdown in CommentsRecyclerViewAdapter.
2022-04-02 15:50:12 +08:00
Docile-Alligator
f0e2090db9
Do not load subreddit data in SidebarFragment. Save subreddit data to the database in ViewSubredditDetailActivity.
2022-04-01 17:29:42 +08:00
Docile-Alligator
83b71b8304
Fix spoiler not rendering last two characters.
2022-03-30 07:27:41 +08:00
Docile-Alligator
ac749fe0f0
New option: Settings->Data Saving Mode->Reddit Video Default Resolution.
2022-03-25 21:43:38 +08:00
Docile-Alligator
7422098734
Add a FloatingActionButton in ViewMultiRedditDetailActivity.
2022-03-25 17:34:57 +08:00
Docile-Alligator
8ac8ea3d8b
Fix getRedditUriByPath in LinkResolverActivity.
2022-03-25 16:48:35 +08:00
Docile-Alligator
c87b724a24
Fix captions and urls hidden by the navigation bar in ViewRedditGalleryImageorGifFragment.
2022-03-24 14:00:44 +08:00
Docile-Alligator
2bbba42e38
Version 5.1.9.
2022-03-17 22:10:38 +08:00
Docile-Alligator
59ed4c53ff
Prevent WebView from reloading the website after orientation change in WebViewActivity.
2022-03-17 21:22:26 +08:00
Docile-Alligator
b4915859da
Check if PostFragment is detached before initializing PostViewModel.
2022-03-17 14:23:06 +08:00
Docile-Alligator
7405e19c2e
Fix clicking the back button on the toolbar does not finish FullMarkdownActivity.
2022-03-17 14:05:27 +08:00
Docile-Alligator
c0ad8ed27a
Fix unable to update anonymous multireddits.
2022-03-17 13:57:09 +08:00
Docile-Alligator
cfd295aea8
Version 5.1.9-beta2. Optimize AppBarStateChangeListener.
2022-03-14 14:15:44 +08:00
Docile-Alligator
3cae2b0dba
Load image after the AspectRatioGifImageView's height is determined in PostRecyclerViewAdapter to prevent blurry images.
2022-03-11 17:00:23 +08:00
Docile-Alligator
20e4798d34
Fix image loading issue.
2022-03-11 12:15:07 +08:00
Docile-Alligator
aab502238d
Fix navigation drawer issues.
2022-03-11 12:10:35 +08:00
Docile-Alligator
53755d4381
Version 5.1.9-beta1. Fix low resolution post previews when showing them for the first time in PostDetailRecyclerViewAdapter.
2022-03-06 15:09:57 +08:00
Docile-Alligator
141abc654a
New option: Settings->Miscellaneous->Post Feed Preview Max Resolution. Fix low resolution post previews when showing them for the first time. Tweak themed icon.
2022-03-06 10:41:02 +08:00
Docile-Alligator
dc9725735b
Fix preview issue in PostCompactBaseViewHolder in PostRecyclerViewAdapter.
2022-03-05 11:33:07 +08:00
Docile-Alligator
023cef76ad
Themed icon for Android. Very ugly right now.
2022-03-05 11:02:16 +08:00
20captainx12
af120ded09
Added adaptive icons ( #646 )
...
Start adding adaptive icons for Android Tiramisu.
2022-03-04 11:46:11 +08:00
Docile-Alligator
40078880af
Try fixing Parcelable implementation issues.
2022-02-28 23:55:49 +08:00
Docile-Alligator
f0589ada3e
Show and open r/u_ style subreddits in comments.
2022-02-28 18:12:13 +08:00
Docile-Alligator
2e67298813
Show and open r/u_ style subreddits in posts.
2022-02-28 18:01:30 +08:00
Docile-Alligator
405317b4cb
Fix changing default post layout not working.
2022-02-28 16:45:30 +08:00
Docile-Alligator
5e0b2662d7
New fonts: Atkinson Hyperlegible and Atkinson Hyperlegible Bold.
2022-02-25 18:23:40 +08:00
Docile-Alligator
679820b96e
Submitting poll posts is available.
2022-02-21 22:52:22 +08:00
Docile-Alligator
3a69e02867
New option: Settings->Interface->Post Details->Hide Upvote Ratio.
2022-02-21 15:38:17 +08:00
Docile-Alligator
4b3e11c62d
Fix https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/667
2022-02-21 12:23:13 +08:00
Docile-Alligator
fbc0006a4f
Use ConcatAdapter for the navigation drawer.
2022-02-20 18:09:54 +08:00
Docile-Alligator
d76abc8c3e
Minor bugs fixed.
2022-02-19 12:16:31 +08:00
Docile-Alligator
f508132f32
New option: Interface->Comment->Always show the number of child comments. Fix notification icon. Tweak the app icon.
2022-02-18 19:48:00 +08:00
Docile-Alligator
b933c9d08b
Fixed a typo: Hide Author Avatar -> Show Author Avatar.
2022-02-18 17:28:40 +08:00
Alex Ning
c64b6ef229
Version 5.1.8. Add Reddit User Agreement to settings. Move Privacy Policy option from About to main settings page.
2022-02-12 22:05:22 +08:00
Alex Ning
79cc6ddf1e
Don't autoplay spoiler videos.
2022-02-05 15:32:01 +08:00
Alex Ning
c265bbecf9
New option: Settings->Interface->Comment->Hide Author Avatar. Fix Application ClassCastException in MainActivity. Don't show the number of child comments in expanded comments.
2022-02-05 15:19:18 +08:00
Alex Ning
101525ae33
Minor bugs fixed.
2022-02-04 11:26:45 +08:00
Alex Ning
5713982e8f
Version 5.1.7.
2022-01-29 11:42:55 +08:00
Alex Ning
5a5011f19e
New option: Settings->Interface->Comment->Show Fewer Toolbar Options Starting From.
2022-01-29 11:11:36 +08:00
Alex Ning
2569742e1c
Set caption and url when submitting gallery posts.
2022-01-28 12:58:16 +08:00
Alex Ning
fd0e95dbac
Show author icon in CommentFullyCollapsedViewHolder.
2022-01-21 22:22:37 +08:00
Alex Ning
db48b940d7
Update translation.
2022-01-21 22:03:02 +08:00
Alex Ning
f33cf68624
New option: Hide Comment Awards.
2022-01-21 20:37:31 +08:00
Alex Ning
e68f8ed4bc
Show author avatars in comments.
2022-01-21 19:52:31 +08:00
Alex Ning
de105359f9
Fix views in comment toolbar overlapping each other.
2022-01-21 15:44:49 +08:00
Alex Ning
c6f5e3c8f6
Version 5.1.6.
2022-01-20 15:08:36 +08:00
Alex Ning
25fff4064c
New option: Hide Text Post Content.
2022-01-20 15:00:26 +08:00
Alex Ning
5eaf4ab8fe
Show child reply count in comments.
2022-01-17 17:30:56 +08:00
Alex Ning
9ab1e6904c
Fix IllegalStateException in ViewPostDetailFragment.
2022-01-17 12:01:12 +08:00
Alex Ning
85a51d7dc8
New option: Fixed height preview in card.
2022-01-16 15:19:55 +08:00
Alex Ning
44ed414f28
Go back to top of the feed after changing sort type or refreshing.
2022-01-16 09:49:07 +08:00
Alex Ning
94f08d616a
Version 5.1.6-beta1.
2022-01-15 14:53:10 +08:00
Giovanni Palmieri
aaa3e91b82
added "Open in browser" button to internal browser ( #622 )
2022-01-15 12:25:07 +08:00
Alex Ning
af3447419a
Load custom fonts.
2022-01-15 12:03:18 +08:00