@Override public void handleMessage(Message msg) { MoneyFragment fragment = mFragment.get(); if (fragment != null) { if (msg.what == 0) { fragment.closeDeleteMode(); } } }
public static MoneyFragment newIntance(String startDate, String endDate) { MoneyFragment moneyFragment = new MoneyFragment(); Bundle bundle = new Bundle(); bundle.putString("startDate", startDate); bundle.putString("endDate", endDate); moneyFragment.setArguments(bundle); return moneyFragment; }