Add LauncherCallbacks for requesting permissions on MNC
Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
This commit is contained in:
parent
21a4ccc627
commit
3a43ed61cb
|
@ -883,6 +883,15 @@ public class Launcher extends Activity
|
|||
}
|
||||
}
|
||||
|
||||
/** @Override for MNC */
|
||||
protected void onRequestPermissionsResult(int requestCode, String[] permissions,
|
||||
int[] grantResults) {
|
||||
if (mLauncherCallbacks != null) {
|
||||
mLauncherCallbacks.onRequestPermissionsResult(requestCode, permissions,
|
||||
grantResults);
|
||||
}
|
||||
}
|
||||
|
||||
private PendingAddArguments preparePendingAddArgs(int requestCode, Intent data, int
|
||||
appWidgetId, ItemInfo info) {
|
||||
PendingAddArguments args = new PendingAddArguments();
|
||||
|
|
|
@ -37,6 +37,8 @@ public interface LauncherCallbacks {
|
|||
public void onPostCreate(Bundle savedInstanceState);
|
||||
public void onNewIntent(Intent intent);
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data);
|
||||
public void onRequestPermissionsResult(int requestCode, String[] permissions,
|
||||
int[] grantResults);
|
||||
public void onWindowFocusChanged(boolean hasFocus);
|
||||
public boolean onPrepareOptionsMenu(Menu menu);
|
||||
public void dump(String prefix, FileDescriptor fd, PrintWriter w, String[] args);
|
||||
|
|
|
@ -81,6 +81,11 @@ public class LauncherExtension extends Launcher {
|
|||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRequestPermissionsResult(int requestCode, String[] permissions,
|
||||
int[] grantResults) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWindowFocusChanged(boolean hasFocus) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue