mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-29 01:01:27 -05:00
nearby: switch back button to close icon when it will end session
Clicking the toolbar button on the start screen will end the swap session.
This commit is contained in:
@@ -608,6 +608,11 @@ public class SwapWorkflowActivity extends AppCompatActivity {
|
||||
}
|
||||
inflateSwapView(currentSwapViewLayoutRes);
|
||||
});
|
||||
if (viewRes == R.layout.swap_start_swap) {
|
||||
toolbar.setNavigationIcon(R.drawable.ic_close);
|
||||
} else {
|
||||
toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_material);
|
||||
}
|
||||
container.addView(view);
|
||||
supportInvalidateOptionsMenu();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user