<commit_before>package de.fau.amos.virtualledger.android.bankingOverview.expandableList.Fragment;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import de.fau.amos.virtualledger.R;
import de.fau.amos.virtualledger.android.authentication.login.LoginActivity;
import de.fau.amos.virtualledger.android.bankingOverview.addBankAccess.AddBankAccessActivity;

/**
 * Created by Simon on 21.05.2017.
 */

public class NoBankingAccessesFragment extends Fragment {

    Button addButton;

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        addButton.setOnClickListener(
                new Button.OnClickListener() {
                    public void onClick(View v) {
                        Intent intent = new Intent(getActivity(), AddBankAccessActivity.class);
                        getActivity().startActivity(intent);<commit_msg>Fixed "No bank access registered" shown after adding the first one<commit_after>package de.fau.amos.virtualledger.android.bankingOverview.expandableList.Fragment;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import de.fau.amos.virtualledger.R;
import de.fau.amos.virtualledger.android.bankingOverview.addBankAccess.AddBankAccessActivity;

/**
 * Created by Simon on 21.05.2017.
 */

public class NoBankingAccessesFragment extends Fragment {

    Button addButton;

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        addButton.setOnClickListener(
                new Button.OnClickListener() {
                    public void onClick(View v) {
                        Intent intent = new Intent(getActivity(), AddBankAccessActivity.class);
                        getActivity().startActivity(intent);
                        getActivity().getFragmentManager().popBackStack();
{'fraction_non_alphanumeric': 0.08784076157507573, 'fraction_numerical': 0.006923409779316313, 'mean_word_length': 3.6332665330661325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '837033', 'n_tokens_mistral': 629, 'n_tokens_neox': 583, 'n_words': 120}