First-run crash fix, colored nav bar setting should be on for all by default if translucent nav bars are no longer being used, etc.
This commit is contained in:
parent
c004a5b112
commit
135c8233ec
6 changed files with 25 additions and 29 deletions
|
|
@ -65,7 +65,6 @@ public class MainActivity extends AbsFabActivity
|
|||
implements NavigationDrawerFragment.NavigationDrawerCallbacks, KabViewsDisableAble {
|
||||
|
||||
public static final String TAG = MainActivity.class.getSimpleName();
|
||||
private static final boolean DEBUG = true;
|
||||
|
||||
private DrawerLayout drawerLayout;
|
||||
private ActionBarDrawerToggle drawerToggle;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import android.support.v4.view.GravityCompat;
|
|||
import android.support.v4.widget.DrawerLayout;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
@ -60,7 +61,7 @@ public class NavigationDrawerFragment extends Fragment {
|
|||
|
||||
|
||||
if (!userLearnedDrawer && !fromSavedInstanceState) {
|
||||
this.drawerLayout.openDrawer(fragmentContainerView);
|
||||
this.drawerLayout.openDrawer(Gravity.START);
|
||||
userLearnedDrawer = true;
|
||||
PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putBoolean(AppKeys.SP_USER_LEARNED_DRAWER, true).apply();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue