mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 14:45:08 +00:00
Fixed warning
This commit is contained in:
@@ -40,8 +40,6 @@ public class MaterialActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
private NavigationView mNavigationView;
|
private NavigationView mNavigationView;
|
||||||
private DrawerLayout mDrawerLayout;
|
private DrawerLayout mDrawerLayout;
|
||||||
private ActionBarDrawerToggle mDrawerToggle;
|
|
||||||
private View mDrawerHeader;
|
|
||||||
|
|
||||||
private String mCurrentDevice;
|
private String mCurrentDevice;
|
||||||
|
|
||||||
@@ -55,14 +53,14 @@ public class MaterialActivity extends AppCompatActivity {
|
|||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
|
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
|
||||||
mNavigationView = (NavigationView) findViewById(R.id.navigation_drawer);
|
mNavigationView = (NavigationView) findViewById(R.id.navigation_drawer);
|
||||||
mDrawerHeader = mNavigationView.getHeaderView(0);
|
View mDrawerHeader = mNavigationView.getHeaderView(0);
|
||||||
|
|
||||||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||||
setSupportActionBar(toolbar);
|
setSupportActionBar(toolbar);
|
||||||
|
|
||||||
ActionBar actionBar = getSupportActionBar();
|
ActionBar actionBar = getSupportActionBar();
|
||||||
|
|
||||||
mDrawerToggle = new ActionBarDrawerToggle(this, /* host Activity */
|
ActionBarDrawerToggle mDrawerToggle = new ActionBarDrawerToggle(this, /* host Activity */
|
||||||
mDrawerLayout, /* DrawerLayout object */
|
mDrawerLayout, /* DrawerLayout object */
|
||||||
R.string.open, /* "open drawer" description */
|
R.string.open, /* "open drawer" description */
|
||||||
R.string.close /* "close drawer" description */
|
R.string.close /* "close drawer" description */
|
||||||
|
Reference in New Issue
Block a user