Revert "Add shortcut manager support to Settings (2/2) b/28298258"
b/28643184
This reverts commit 79ec6df771
.
Change-Id: I3de8a27e88a5a84825e914725259530b22756da0
This commit is contained in:
@@ -43,7 +43,6 @@ import android.transition.TransitionManager;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
@@ -537,8 +536,6 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
final ComponentName cn = intent.getComponent();
|
||||
final String className = cn.getClassName();
|
||||
|
||||
publishShortcuts();
|
||||
|
||||
mIsShowingDashboard = className.equals(Settings.class.getName())
|
||||
|| className.equals(Settings.WirelessSettings.class.getName())
|
||||
|| className.equals(Settings.DeviceSettings.class.getName())
|
||||
@@ -1019,18 +1016,6 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
return f;
|
||||
}
|
||||
|
||||
private void publishShortcuts() {
|
||||
AsyncTask.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (!getSharedPreferences(ShortcutInfoPublisher.PREF_FILE, Context.MODE_PRIVATE)
|
||||
.getBoolean(ShortcutInfoPublisher.PREF_KEY, false)) {
|
||||
ShortcutInfoPublisher.setDynamicShortcuts(SettingsActivity.this, getTileCache());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void updateTilesList() {
|
||||
// Generally the items that are will be changing from these updates will
|
||||
// not be in the top list of tiles, so run it in the background and the
|
||||
|
Reference in New Issue
Block a user