hunk.code_window:     mActivityContext.startActivity(intent);
     }
     private void openShellAppActivity() {
       if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
         ActivityManager manager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);
         for (ActivityManager.AppTask task : manager.getAppTasks()) {
           Intent baseIntent = task.getTaskInfo().baseIntent;
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     Class activityClass = ShellAppActivity.class;
       if (Constants.isDetached()) {
         try {
           activityClass = Class.forName("host.exp.exponent.MainActivity");
         } catch (Exception e) {
           EXL.e(TAG, "Cannot find MainActivity, falling back to ShellAppActivity");
         }
       }
  
hunk.file_path: android/expoview/src/main/java/host/exp/exponent/kernel/Kernel.java
hunk.type: add
file: /**
   * Copyright (c) 2016-present, Facebook, Inc.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree. An additional grant
   * of patent rights can be found in the PATENTS file in the same directory.
   *
   * @providesModule promiseRejectionIsError
   * @flow
   */
  'use strict';
  
  require('./Promise'); // make sure the default rejection handler is installed
  const rejectionTracking = require('promise/setimmediate/rejection-tracking');
  
  module.exports = () => {
    rejectionTracking.enable({
      allRejections: true,
      onUnhandled: (id, error) => {
        console.error(error);
      },
      onHandled: () => {},
    });
  };
  