Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Remove local/remote setup choice (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelWuensch authored Dec 14, 2020
1 parent 200403b commit 419fda6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public void onSingleClick(View v) {
public void onClick(View v) {
Intent intent = new Intent(getActivity(), SetupActivity.class);
intent.putExtra(RefConstants.SETUP_MODE, SetupActivity.FULL_SETUP);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);
}
});
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/zapsolutions/zap/setup/SetupActivity.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package zapsolutions.zap.setup;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;
Expand Down Expand Up @@ -60,7 +61,11 @@ private void showEnterPin() {
}

private void showConnectChoice() {
changeFragment(new ConnectFragment());
// The choice is skipped right now. Instead we immediately go to the scan activity
//changeFragment(new ConnectFragment());

Intent intent = new Intent(SetupActivity.this, ConnectRemoteNodeActivity.class);
startActivity(intent);
}

private void changeFragment(Fragment fragment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ protected void onCreate(Bundle savedInstanceState) {
public void onClick(View view) {
// Add a new wallet
Intent intent = new Intent(ManageWalletsActivity.this, SetupActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);
}
});
Expand Down

0 comments on commit 419fda6

Please sign in to comment.