OSDN Git Service

Merge tag 'android-8.1.0_r33' into oreo-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Jun 2018 09:30:24 +0000 (17:30 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Jun 2018 09:30:24 +0000 (17:30 +0800)
Android 8.1.0 release 33

1  2 
core/java/android/app/Activity.java

@@@ -126,8 -126,6 +126,8 @@@ import com.android.internal.app.WindowD
  import com.android.internal.policy.DecorView;
  import com.android.internal.policy.PhoneWindow;
  
 +import org.android_x86.analytics.AnalyticsHelper;
 +
  import java.io.FileDescriptor;
  import java.io.PrintWriter;
  import java.lang.annotation.Retention;
@@@ -761,7 -759,6 +761,7 @@@ public class Activity extends ContextTh
      boolean mFinished;
      boolean mStartedActivity;
      private boolean mDestroyed;
 +    private boolean mAppsStatistics;
      private boolean mDoReportFullyDrawn = true;
      private boolean mRestoredFromBundle;
  
          }
          mRestoredFromBundle = savedInstanceState != null;
          mCalled = true;
 +        mAppsStatistics = SystemProperties.getBoolean("persist.sys.apps_statistics", false);
      }
  
      /**
  
          mFragments.doLoaderStart();
  
 +        // region @android-x86-analytics
 +        // screen view
 +        if (mAppsStatistics) {
 +            AnalyticsHelper.hitScreen(this);
 +        }
 +        // endregion
          getApplication().dispatchActivityStarted(this);
  
          if (mAutoFillResetNeeded) {
      }
  
      /**
+      * Temporary method on O-MR1 only.
+      *
+      * @hide
+      */
+     @Override
+     public ComponentName getComponentNameForAutofill() {
+         return mComponent;
+     }
+     /**
       * Retrieve a {@link SharedPreferences} object for accessing preferences
       * that are private to this activity.  This simply calls the underlying
       * {@link #getSharedPreferences(String, int)} method by passing in this activity's