Merge "Added constructor to ShortcutKey." into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
9e3056071b
@@ -1,6 +1,7 @@
|
||||
package com.android.launcher3.shortcuts;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserHandle;
|
||||
|
||||
@@ -17,6 +18,10 @@ public class ShortcutKey extends ComponentKey {
|
||||
super(new ComponentName(packageName, id), user);
|
||||
}
|
||||
|
||||
public ShortcutKey(Context context, String componentKeyStr) {
|
||||
super(context, componentKeyStr);
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return componentName.getClassName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user