当前位置: 首页>>代码示例>>Java>>正文


Java ApiCompatibilityUtils.finishAndRemoveTask方法代码示例

本文整理汇总了Java中org.chromium.base.ApiCompatibilityUtils.finishAndRemoveTask方法的典型用法代码示例。如果您正苦于以下问题:Java ApiCompatibilityUtils.finishAndRemoveTask方法的具体用法?Java ApiCompatibilityUtils.finishAndRemoveTask怎么用?Java ApiCompatibilityUtils.finishAndRemoveTask使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.chromium.base.ApiCompatibilityUtils的用法示例。


在下文中一共展示了ApiCompatibilityUtils.finishAndRemoveTask方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreateInternal

import org.chromium.base.ApiCompatibilityUtils; //导入方法依赖的package包/类
private final void onCreateInternal(Bundle savedInstanceState) {
    if (DocumentModeAssassin.getInstance().isMigrationNecessary()) {
        super.onCreate(null);

        // Kick the user to the MigrationActivity.
        UpgradeActivity.launchInstance(this, getIntent());

        // Don't remove this task -- it may be a DocumentActivity that exists only in Recents.
        finish();
        return;
    }

    if (!isStartedUpCorrectly(getIntent())) {
        super.onCreate(null);
        ApiCompatibilityUtils.finishAndRemoveTask(this);
        return;
    }

    super.onCreate(savedInstanceState);
    mOnCreateTimestampMs = SystemClock.elapsedRealtime();
    mOnCreateTimestampUptimeMs = SystemClock.uptimeMillis();
    mSavedInstanceState = savedInstanceState;

    ChromeBrowserInitializer.getInstance(this).handlePreNativeStartup(this);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:26,代码来源:AsyncInitializationActivity.java

示例2: continueApplicationLaunch

import org.chromium.base.ApiCompatibilityUtils; //导入方法依赖的package包/类
private void continueApplicationLaunch() {
    if (mIsDestroyed) return;

    ApiCompatibilityUtils.finishAndRemoveTask(this);
    if (mIntentToFireAfterUpgrade != null && ApplicationStatus.hasVisibleActivities()) {
        startActivity(mIntentToFireAfterUpgrade);
        overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
        mIntentToFireAfterUpgrade = null;
    }
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:11,代码来源:UpgradeActivity.java

示例3: completeActivity

import org.chromium.base.ApiCompatibilityUtils; //导入方法依赖的package包/类
/**
 * In webapps, calls finish on the activity, but keeps it in recents. In Document mode,
 * finishes and removes from recents. We use mBlockNewWindows flag to distinguish the user
 * of this model.
 */
private void completeActivity() {
    if (mBlockNewWindows) {
        mActivity.finish();
    } else {
        ApiCompatibilityUtils.finishAndRemoveTask(mActivity);
    }
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:13,代码来源:SingleTabModel.java

示例4: handleFinishAndClose

import org.chromium.base.ApiCompatibilityUtils; //导入方法依赖的package包/类
@Override
protected void handleFinishAndClose() {
    ApiCompatibilityUtils.finishAndRemoveTask(this);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:5,代码来源:SeparateTaskCustomTabActivity.java

示例5: onCreate

import org.chromium.base.ApiCompatibilityUtils; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    launchActivity();
    ApiCompatibilityUtils.finishAndRemoveTask(this);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:7,代码来源:WebappLauncherActivity.java


注:本文中的org.chromium.base.ApiCompatibilityUtils.finishAndRemoveTask方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。