Fixed handler nullPointException
This commit is contained in:
parent
0fd28c1e2b
commit
9631db4c8d
@ -291,7 +291,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||||||
Daedalus.getInstance().deactivateService();
|
Daedalus.getInstance().deactivateService();
|
||||||
} else if (launchAction == LAUNCH_ACTION_AFTER_DEACTIVATE) {
|
} else if (launchAction == LAUNCH_ACTION_AFTER_DEACTIVATE) {
|
||||||
Daedalus.updateShortcut(this.getApplicationContext());
|
Daedalus.updateShortcut(this.getApplicationContext());
|
||||||
if (currentFragment == FRAGMENT_MAIN) {
|
if (currentFragment == FRAGMENT_MAIN && mHandler != null) {
|
||||||
mHandler.obtainMessage(MainFragment.MainFragmentHandler.MSG_REFRESH).sendToTarget();
|
mHandler.obtainMessage(MainFragment.MainFragmentHandler.MSG_REFRESH).sendToTarget();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user