mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	Fix issue #955 - Focus the clicked messages and allow selections for remote conversations
This commit is contained in:
		
							parent
							
								
									95e4952012
								
							
						
					
					
						commit
						5f3ca62393
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		|  | @ -2041,6 +2041,18 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> | |||
|                                             Toasty.info(context, context.getString(R.string.toast_error_search), Toasty.LENGTH_SHORT).show(); | ||||
|                                         } | ||||
|                                     }); | ||||
|                         } else if (context instanceof ContextActivity) { | ||||
|                             int position = 0; | ||||
|                             for (Status _status : statusList) { | ||||
|                                 if (_status.isFocused) { | ||||
|                                     _status.isFocused = false; | ||||
|                                     adapter.notifyItemChanged(position); | ||||
|                                 } else if (statusToDeal.equals(_status)) { | ||||
|                                     _status.isFocused = true; | ||||
|                                     adapter.notifyItemChanged(position); | ||||
|                                 } | ||||
|                                 position++; | ||||
|                             } | ||||
|                         } | ||||
|                     } else { | ||||
|                         Intent intent = new Intent(context, ContextActivity.class); | ||||
|  |  | |||
|  | @ -280,6 +280,10 @@ public class FragmentMastodonContext extends Fragment { | |||
|             } | ||||
|             if (found) { | ||||
|                 binding.recyclerView.scrollToPosition(position); | ||||
|                 statuses.get(0).isFocused = false; | ||||
|                 statuses.get(position).isFocused = true; | ||||
|                 statusAdapter.notifyItemChanged(0); | ||||
|                 statusAdapter.notifyItemChanged(position); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue