code: final void setCachedActivity(Activity activity) {
          synchronized (mMonitor) {
              if (mApplication == null) {
                  mApplication = activity.getApplication();
              }
              mCachedActivity = new WeakReference<>(activity);
          }
      }
docs: /*package