focused status
This commit is contained in:
parent
72e0ea3594
commit
d14843c131
|
@ -2422,7 +2422,6 @@ public abstract class BaseMainActivity extends BaseActivity
|
|||
public void updateNotifCounter(){
|
||||
if( timelines == null)
|
||||
return;
|
||||
ManageTimelines notifTimeline;
|
||||
int i = 0;
|
||||
int position = -1;
|
||||
for(ManageTimelines tl: timelines){
|
||||
|
@ -2476,7 +2475,6 @@ public abstract class BaseMainActivity extends BaseActivity
|
|||
|
||||
public void manageFloatingButton(boolean display){
|
||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||
boolean displayFollowInstance = sharedpreferences.getBoolean(Helper.SET_DISPLAY_FOLLOW_INSTANCE, true);
|
||||
if( social == UpdateAccountInfoAsyncTask.SOCIAL.PEERTUBE ||social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON || social == UpdateAccountInfoAsyncTask.SOCIAL.PLEROMA|| social == UpdateAccountInfoAsyncTask.SOCIAL.GNU|| social == UpdateAccountInfoAsyncTask.SOCIAL.FRIENDICA) {
|
||||
if (display) {
|
||||
tootShow();
|
||||
|
|
|
@ -118,6 +118,8 @@ public class ShowConversationActivity extends BaseActivity implements OnRetriev
|
|||
finish();
|
||||
|
||||
|
||||
detailsStatus.setFocused(true);
|
||||
|
||||
if( MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON) {
|
||||
|
||||
if( receive_action != null)
|
||||
|
|
|
@ -849,7 +849,10 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
return statuses.get(position).getViewType();
|
||||
if( statuses.get(position).isFocused() && type == RetrieveFeedsAsyncTask.Type.CONTEXT && statuses.get(position).getViewType() != CONSOLE_STATUS)
|
||||
return FOCUSED_STATUS;
|
||||
else
|
||||
return statuses.get(position).getViewType();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
Loading…
Reference in New Issue