Program: 104960
Project: 104960
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  PreferenceManager.setDefaultValues(this,R.xml.prefs,true);
  startService(new Intent(this,MainService.class));
  getBrowsers();
  Intent intent=getIntent();
  if (intent.getAction().equals(Intent.ACTION_VIEW)) {
    boolean openLink=false;
    SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
    boolean enabled=prefs.getBoolean("String_Node_Str",true);
    if (enabled) {
      final ActivityManager activityManager=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
      List<ActivityManager.RecentTaskInfo> recentTasks=activityManager.getRecentTasks(16,ActivityManager.RECENT_WITH_EXCLUDED);
      if (recentTasks.size() > 0) {
        ActivityManager.RecentTaskInfo rt=recentTasks.get(0);
        Intent baseIntent=rt.baseIntent;
        ComponentName cn=baseIntent.getComponent();
        boolean isBlacklisted=false;
        for (        String packageName : mBrowsers) {
          if (cn.getPackageName().equals(packageName)) {
            isBlacklisted=true;
            break;
          }
        }
        if (!isBlacklisted) {
          openLink=true;
        }
      }
    }
    if (openLink) {
      mUrl=intent.getDataString();
      Intent serviceIntent=new Intent(this,MainService.class);
      bindService(serviceIntent,mConnection,Context.BIND_AUTO_CREATE);
    }
 else {
      loadInBrowser(this,intent);
    }
    finish();
  }
 else {
    setContentView(R.layout.activity_main);
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  sCurrentInstance=this;
  Intent intent=getIntent();
  boolean isActionView=intent.getAction().equals(Intent.ACTION_VIEW);
  if (isActionView == false) {
    setTheme(android.R.style.Theme_Holo_Light);
  }
  super.onCreate(savedInstanceState);
  PreferenceManager.setDefaultValues(this,R.xml.prefs,true);
  startService(new Intent(this,MainService.class));
  getBrowsers();
  if (isActionView) {
    boolean openLink=false;
    SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
    boolean enabled=prefs.getBoolean("String_Node_Str",true);
    if (enabled) {
      final ActivityManager activityManager=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
      List<ActivityManager.RecentTaskInfo> recentTasks=activityManager.getRecentTasks(16,ActivityManager.RECENT_WITH_EXCLUDED);
      if (recentTasks.size() > 0) {
        ActivityManager.RecentTaskInfo rt=recentTasks.get(0);
        Intent baseIntent=rt.baseIntent;
        ComponentName cn=baseIntent.getComponent();
        boolean isBlacklisted=false;
        for (        String packageName : mBrowsers) {
          if (cn.getPackageName().equals(packageName)) {
            isBlacklisted=true;
            break;
          }
        }
        if (!isBlacklisted) {
          openLink=true;
        }
      }
    }
    if (openLink) {
      mUrl=intent.getDataString();
      Intent serviceIntent=new Intent(this,MainService.class);
      bindService(serviceIntent,mConnection,Context.BIND_AUTO_CREATE);
    }
 else {
      loadInBrowser(this,intent);
    }
    finish();
  }
 else {
    setContentView(R.layout.activity_main);
  }
}