mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	some fixes
This commit is contained in:
		
							parent
							
								
									a013c160b7
								
							
						
					
					
						commit
						917f33334c
					
				
					 2 changed files with 10 additions and 4 deletions
				
			
		|  | @ -172,6 +172,7 @@ import app.fedilab.android.mastodon.helper.Helper; | ||||||
| import app.fedilab.android.mastodon.helper.MastodonHelper; | import app.fedilab.android.mastodon.helper.MastodonHelper; | ||||||
| import app.fedilab.android.mastodon.helper.PinnedTimelineHelper; | import app.fedilab.android.mastodon.helper.PinnedTimelineHelper; | ||||||
| import app.fedilab.android.mastodon.helper.PushHelper; | import app.fedilab.android.mastodon.helper.PushHelper; | ||||||
|  | import app.fedilab.android.mastodon.helper.ThemeHelper; | ||||||
| import app.fedilab.android.mastodon.ui.drawer.AccountsSearchTopBarAdapter; | import app.fedilab.android.mastodon.ui.drawer.AccountsSearchTopBarAdapter; | ||||||
| import app.fedilab.android.mastodon.ui.drawer.TagSearchTopBarAdapter; | import app.fedilab.android.mastodon.ui.drawer.TagSearchTopBarAdapter; | ||||||
| import app.fedilab.android.mastodon.ui.fragment.timeline.FragmentMastodonConversation; | import app.fedilab.android.mastodon.ui.fragment.timeline.FragmentMastodonConversation; | ||||||
|  | @ -719,6 +720,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt | ||||||
|                         Toasty.info(activity, activity.getString(R.string.toast_account_changed, acct), Toasty.LENGTH_LONG).show(); |                         Toasty.info(activity, activity.getString(R.string.toast_account_changed, acct), Toasty.LENGTH_LONG).show(); | ||||||
|                         BaseMainActivity.currentToken = account.token; |                         BaseMainActivity.currentToken = account.token; | ||||||
|                         BaseMainActivity.currentUserID = account.user_id; |                         BaseMainActivity.currentUserID = account.user_id; | ||||||
|  |                         ThemeHelper.applyThemeColor(activity); | ||||||
|                         api = account.api; |                         api = account.api; | ||||||
|                         SharedPreferences.Editor editor = sharedpreferences.edit(); |                         SharedPreferences.Editor editor = sharedpreferences.edit(); | ||||||
|                         editor.putString(PREF_USER_TOKEN, account.token); |                         editor.putString(PREF_USER_TOKEN, account.token); | ||||||
|  |  | ||||||
|  | @ -132,10 +132,14 @@ public class TimelineHelper { | ||||||
|                                 continue; |                                 continue; | ||||||
|                             } |                             } | ||||||
|                             String content; |                             String content; | ||||||
|                             if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) |                             try { | ||||||
|                                 content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content, Html.FROM_HTML_MODE_LEGACY).toString(); |                                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) | ||||||
|                             else |                                     content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content, Html.FROM_HTML_MODE_LEGACY).toString(); | ||||||
|                                 content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content).toString(); |                                 else | ||||||
|  |                                     content = Html.fromHtml(status.reblog != null ? status.reblog.content : status.content).toString(); | ||||||
|  |                             } catch (Exception e) { | ||||||
|  |                                 content = status.reblog != null ? status.reblog.content : status.content; | ||||||
|  |                             } | ||||||
|                             Matcher m = p.matcher(content); |                             Matcher m = p.matcher(content); | ||||||
|                             if (m.find()) { |                             if (m.find()) { | ||||||
|                                 status.filteredByApp = filter; |                                 status.filteredByApp = filter; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue