Skip to content

Commit

Permalink
create eos wallet screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Anschutz1927 committed Jul 30, 2018
1 parent 237d20b commit fba1c85
Show file tree
Hide file tree
Showing 21 changed files with 1,217 additions and 12 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ dependencies {
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
implementation 'com.google.code.gson:gson:2.8.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ public void onClickWarn() {
startActivity(new Intent(getActivity(), SeedActivity.class));
}

//todo need to move in a common activity
public static class SharingBroadcastReceiver extends BroadcastReceiver {

public SharingBroadcastReceiver() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,27 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,

View v = inflater.inflate(R.layout.view_assets_action_add, container, false);
ButterKnife.bind(this, v);
initialize();
subscribeToCurrencyUpdate();
Analytics.getInstance(getActivity()).logCreateWalletLaunch();
if (chainId == NativeDataHelper.Blockchain.EOS.getValue() && getFragmentManager() != null) {
getActivity().getIntent().putExtra(Constants.CHAIN_ID, chainId);
CreatePayableAssetFragment fragment = CreatePayableAssetFragment.getInstance();
getFragmentManager().beginTransaction()
.replace(R.id.container_main, fragment, CreatePayableAssetFragment.TAG)
.commit();
} else {
initialize();
subscribeToCurrencyUpdate();
Analytics.getInstance(getActivity()).logCreateWalletLaunch();

editTextWalletName.requestFocus();
editTextWalletName.postDelayed(() -> {
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm.isActive()) {
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
}
editTextWalletName.requestFocus();
editTextWalletName.postDelayed(() -> {
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm.isActive()) {
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
}

imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
}, 100);
imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
}, 100);
}
return v;
}

Expand Down
Loading

0 comments on commit fba1c85

Please sign in to comment.