mirror of https://github.com/M66B/FairEmail.git
Fixed flickering
This commit is contained in:
parent
3878ea5e7a
commit
33fe873383
|
@ -303,7 +303,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||||
intent.setAction(null);
|
intent.setAction(null);
|
||||||
setIntent(intent);
|
setIntent(intent);
|
||||||
|
|
||||||
getSupportFragmentManager().popBackStack("unified", 0);
|
|
||||||
intent.putExtra("thread", action.split(":", 2)[1]);
|
intent.putExtra("thread", action.split(":", 2)[1]);
|
||||||
onViewThread(intent);
|
onViewThread(intent);
|
||||||
}
|
}
|
||||||
|
@ -767,6 +766,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onViewThread(Intent intent) {
|
private void onViewThread(Intent intent) {
|
||||||
|
getFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||||
|
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putLong("account", intent.getLongExtra("account", -1));
|
args.putLong("account", intent.getLongExtra("account", -1));
|
||||||
args.putString("thread", intent.getStringExtra("thread"));
|
args.putString("thread", intent.getStringExtra("thread"));
|
||||||
|
|
|
@ -52,7 +52,6 @@ import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.widget.SearchView;
|
import androidx.appcompat.widget.SearchView;
|
||||||
import androidx.constraintlayout.widget.Group;
|
import androidx.constraintlayout.widget.Group;
|
||||||
import androidx.fragment.app.FragmentManager;
|
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
import androidx.lifecycle.Lifecycle;
|
import androidx.lifecycle.Lifecycle;
|
||||||
import androidx.lifecycle.LiveData;
|
import androidx.lifecycle.LiveData;
|
||||||
|
@ -475,8 +474,6 @@ public class FragmentMessages extends FragmentEx {
|
||||||
View.OnClickListener navigate = new View.OnClickListener() {
|
View.OnClickListener navigate = new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
getFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
|
||||||
|
|
||||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||||
lbm.sendBroadcast(
|
lbm.sendBroadcast(
|
||||||
new Intent(ActivityView.ACTION_VIEW_THREAD)
|
new Intent(ActivityView.ACTION_VIEW_THREAD)
|
||||||
|
|
Loading…
Reference in New Issue