浏览代码

Remove unused imports and fields

Guy Carmeli 8 年前
父节点
当前提交
dfc84aa82e
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0
    7
      android/app/src/main/java/com/reactnativenavigation/views/RnnToolBar.java

+ 0
- 7
android/app/src/main/java/com/reactnativenavigation/views/RnnToolBar.java 查看文件

@@ -1,9 +1,7 @@
1 1
 package com.reactnativenavigation.views;
2 2
 
3
-import android.annotation.SuppressLint;
4 3
 import android.app.Activity;
5 4
 import android.content.Context;
6
-import android.content.res.Resources;
7 5
 import android.graphics.Color;
8 6
 import android.graphics.drawable.Drawable;
9 7
 import android.os.AsyncTask;
@@ -11,7 +9,6 @@ import android.support.annotation.ColorInt;
11 9
 import android.support.annotation.NonNull;
12 10
 import android.support.annotation.UiThread;
13 11
 import android.support.v4.content.ContextCompat;
14
-import android.support.v4.content.res.ResourcesCompat;
15 12
 import android.support.v4.widget.DrawerLayout;
16 13
 import android.support.v7.app.ActionBar;
17 14
 import android.support.v7.app.ActionBarDrawerToggle;
@@ -45,14 +42,11 @@ import java.util.Map;
45 42
  */
46 43
 public class RnnToolBar extends Toolbar {
47 44
 
48
-    private static final int ANIMATE_DURATION = 180;
49
-
50 45
     private List<Screen> mScreens;
51 46
     private AsyncTask mDrawerIconTask;
52 47
     private AsyncTask mSetupToolbarTask;
53 48
     private Drawable mBackground;
54 49
     private Drawable mDrawerIcon;
55
-    private Screen mDrawerScreen;
56 50
     private DrawerLayout mDrawerLayout;
57 51
     private ActionBarDrawerToggle mDrawerToggle;
58 52
     private ArrayList<View> mMenuItems;
@@ -121,7 +115,6 @@ public class RnnToolBar extends Toolbar {
121 115
         }
122 116
 
123 117
         mDrawerLayout = drawerLayout;
124
-        mDrawerScreen = drawerScreen;
125 118
         mDrawerToggle = new ActionBarDrawerToggle(
126 119
             ContextProvider.getActivityContext(),
127 120
             mDrawerLayout,