Fixed handler nullPointException

This commit is contained in:
PeratX 2017-05-04 21:42:24 +08:00
parent 0fd28c1e2b
commit 9631db4c8d

View File

@ -291,7 +291,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
Daedalus.getInstance().deactivateService();
} else if (launchAction == LAUNCH_ACTION_AFTER_DEACTIVATE) {
Daedalus.updateShortcut(this.getApplicationContext());
if (currentFragment == FRAGMENT_MAIN) {
if (currentFragment == FRAGMENT_MAIN && mHandler != null) {
mHandler.obtainMessage(MainFragment.MainFragmentHandler.MSG_REFRESH).sendToTarget();
}
} else {