Program: 162556
Project: 162556
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Sp=PreferenceManager.getDefaultSharedPreferences(this);
  theme=Integer.parseInt(Sp.getString("String_Node_Str","String_Node_Str"));
  theme1=theme == 2 ? PreferenceUtils.hourOfDay() : theme;
  if (theme1 == 1) {
    setTheme(R.style.appCompatDark);
    getWindow().getDecorView().setBackgroundColor(getResources().getColor(R.color.holo_dark_background));
  }
  setContentView(R.layout.activity_db_viewer);
  toolbar=(android.support.v7.widget.Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  skin=PreferenceUtils.getPrimaryColorString(Sp);
  if (Build.VERSION.SDK_INT >= 21) {
    ActivityManager.TaskDescription taskDescription=new ActivityManager.TaskDescription("String_Node_Str",((BitmapDrawable)ContextCompat.getDrawable(this,R.mipmap.ic_launcher)).getBitmap(),Color.parseColor(skin));
    ((Activity)this).setTaskDescription(taskDescription);
  }
  skinStatusBar=PreferenceUtils.getStatusColor(skin);
  getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(skin)));
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  rootMode=PreferenceManager.getDefaultSharedPreferences(this).getBoolean("String_Node_Str",false);
  int sdk=Build.VERSION.SDK_INT;
  if (sdk == 20 || sdk == 19) {
    SystemBarTintManager tintManager=new SystemBarTintManager(this);
    tintManager.setStatusBarTintEnabled(true);
    tintManager.setStatusBarTintColor(Color.parseColor(skin));
    FrameLayout.MarginLayoutParams p=(ViewGroup.MarginLayoutParams)findViewById(R.id.parentdb).getLayoutParams();
    SystemBarTintManager.SystemBarConfig config=tintManager.getConfig();
    p.setMargins(0,config.getStatusBarHeight(),0,0);
  }
 else   if (Build.VERSION.SDK_INT >= 21) {
    boolean colourednavigation=Sp.getBoolean("String_Node_Str",true);
    Window window=getWindow();
    window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
    window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    window.setStatusBarColor((PreferenceUtils.getStatusColor(skin)));
    if (colourednavigation)     window.setNavigationBarColor((PreferenceUtils.getStatusColor(skin)));
  }
  path=getIntent().getStringExtra("String_Node_Str");
  pathFile=new File(path);
  listView=(ListView)findViewById(R.id.listView);
  load(pathFile);
  listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      FragmentTransaction fragmentTransaction=getSupportFragmentManager().beginTransaction();
      DbViewerFragment fragment=new DbViewerFragment();
      Bundle bundle=new Bundle();
      bundle.putString("String_Node_Str",arrayList.get(position));
      fragment.setArguments(bundle);
      fragmentTransaction.add(R.id.content_frame,fragment);
      fragmentTransaction.addToBackStack(null);
      fragmentTransaction.commit();
    }
  }
);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  this.checkStorage=false;
  super.onCreate(savedInstanceState);
  if (theme1 == 1) {
    setTheme(R.style.appCompatDark);
    getWindow().getDecorView().setBackgroundColor(getResources().getColor(R.color.holo_dark_background));
  }
  setContentView(R.layout.activity_db_viewer);
  toolbar=(android.support.v7.widget.Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(toolbar);
  skin=PreferenceUtils.getPrimaryColorString(Sp);
  if (Build.VERSION.SDK_INT >= 21) {
    ActivityManager.TaskDescription taskDescription=new ActivityManager.TaskDescription("String_Node_Str",((BitmapDrawable)ContextCompat.getDrawable(this,R.mipmap.ic_launcher)).getBitmap(),Color.parseColor(skin));
    ((Activity)this).setTaskDescription(taskDescription);
  }
  skinStatusBar=PreferenceUtils.getStatusColor(skin);
  getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(skin)));
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  int sdk=Build.VERSION.SDK_INT;
  if (sdk == 20 || sdk == 19) {
    SystemBarTintManager tintManager=new SystemBarTintManager(this);
    tintManager.setStatusBarTintEnabled(true);
    tintManager.setStatusBarTintColor(Color.parseColor(skin));
    FrameLayout.MarginLayoutParams p=(ViewGroup.MarginLayoutParams)findViewById(R.id.parentdb).getLayoutParams();
    SystemBarTintManager.SystemBarConfig config=tintManager.getConfig();
    p.setMargins(0,config.getStatusBarHeight(),0,0);
  }
 else   if (Build.VERSION.SDK_INT >= 21) {
    boolean colourednavigation=Sp.getBoolean("String_Node_Str",true);
    Window window=getWindow();
    window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
    window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    window.setStatusBarColor((PreferenceUtils.getStatusColor(skin)));
    if (colourednavigation)     window.setNavigationBarColor((PreferenceUtils.getStatusColor(skin)));
  }
  path=getIntent().getStringExtra("String_Node_Str");
  pathFile=new File(path);
  listView=(ListView)findViewById(R.id.listView);
  load(pathFile);
  listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      FragmentTransaction fragmentTransaction=getSupportFragmentManager().beginTransaction();
      DbViewerFragment fragment=new DbViewerFragment();
      Bundle bundle=new Bundle();
      bundle.putString("String_Node_Str",arrayList.get(position));
      fragment.setArguments(bundle);
      fragmentTransaction.add(R.id.content_frame,fragment);
      fragmentTransaction.addToBackStack(null);
      fragmentTransaction.commit();
    }
  }
);
}