Fixed NPE

master
Keith 2016-07-16 18:21:24 -04:00
parent 5b6be4b3bc
commit 0b1dff1f27
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -30,6 +30,7 @@ public class MainActivity extends AppCompatActivity implements
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (BuildConfig.DEBUG){ Log.d(TAG, "Created in debug mode"); }
setContentView(R.layout.activity_main);
NavigationDrawerFragment mNavigationDrawerFragment = (NavigationDrawerFragment)
getSupportFragmentManager().findFragmentById(R.id.navigation_drawer);
@ -39,7 +40,8 @@ public class MainActivity extends AppCompatActivity implements
Log.d(TAG, "Setting up drawer");
mNavigationDrawerFragment.setUp(
R.id.navigation_drawer,
(DrawerLayout) findViewById(R.id.drawer_layout));
(DrawerLayout) findViewById(R.id.drawer_layout)
);
// Check if gps enabled and start location service
Log.d(TAG, "Checking if gps enabled");