Enable Kotlin for Settings App
Currently Kotlin files cannot build with library app-compat-annotations. Only one @ChangeId need this library, create separate build target library Settings-change-ids to solve this issue. After this cl, Kotlin could be used for Settings App. Fix: 229037247 Test: make Settings Change-Id: I4a0d99425c9e6cc2cbc015d2561daa68609ca0fd
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.settings.applications.manageapplications;
|
||||
|
||||
import static androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE;
|
||||
|
||||
import static com.android.settings.ChangeIds.CHANGE_RESTRICT_SAW_INTENT;
|
||||
import static com.android.settings.applications.manageapplications.AppFilterRegistry.FILTER_APPS_ALL;
|
||||
import static com.android.settings.applications.manageapplications.AppFilterRegistry.FILTER_APPS_BLOCKED;
|
||||
import static com.android.settings.applications.manageapplications.AppFilterRegistry.FILTER_APPS_DISABLED;
|
||||
@@ -37,8 +38,6 @@ import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.app.usage.IUsageStatsManager;
|
||||
import android.compat.annotation.ChangeId;
|
||||
import android.compat.annotation.LoggingOnly;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
@@ -190,16 +189,6 @@ public class ManageApplications extends InstrumentedFragment
|
||||
public static final int STORAGE_TYPE_DEFAULT = 0; // Show all apps that are not categorized.
|
||||
public static final int STORAGE_TYPE_LEGACY = 1; // Show apps even if they can be categorized.
|
||||
|
||||
/**
|
||||
* Intents with action {@code android.settings.MANAGE_APP_OVERLAY_PERMISSION}
|
||||
* and data URI scheme {@code package} don't go to the app-specific screen for managing the
|
||||
* permission anymore. Instead, they redirect to this screen for managing all the apps that have
|
||||
* requested such permission.
|
||||
*/
|
||||
@ChangeId
|
||||
@LoggingOnly
|
||||
private static final long CHANGE_RESTRICT_SAW_INTENT = 135920175L;
|
||||
|
||||
// sort order
|
||||
@VisibleForTesting
|
||||
int mSortOrder = R.id.sort_order_alpha;
|
||||
|
Reference in New Issue
Block a user