Use a single layout for CreateShortcut activity.

The old layout is inherited from LauncherActivity, which uses a
inconsistent theme and UI between phone and tablet. It's more consistent
to just use a single layout that matches setting theme.

Fixes: 32220535
Test: runtest --path packages/apps/Settings/tests/app/src/com/android/settings/CreateShortcutTest.java
Change-Id: I769d1404c82c2057bf021e4cf557e7cf397d92a7
This commit is contained in:
Fan Zhang
2016-12-07 15:29:43 -08:00
parent 36d0d143be
commit b95ff4ec31
4 changed files with 87 additions and 0 deletions

View File

@@ -85,6 +85,11 @@ public class CreateShortcut extends LauncherActivity {
return false;
}
@Override
protected void onSetContentView() {
setContentView(R.layout.activity_list);
}
/**
* Perform query on package manager for list items. The default
* implementation queries for activities.