Merge "NIU Actions: Handle null default assistant"
This commit is contained in:
commit
65b105bdee
1 file changed
+5
-1
@@ -255,7 +255,11 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
|
||||
|
||||
String assistantPackage =
|
||||
Settings.Secure.getString(contentResolver, Settings.Secure.ASSISTANT);
|
||||
mNIUPackageName = assistantPackage.split("/", 2)[0];
|
||||
if (!TextUtils.isEmpty(assistantPackage)) {
|
||||
mNIUPackageName = assistantPackage.split("/", 2)[0];
|
||||
} else {
|
||||
mNIUPackageName = "";
|
||||
}
|
||||
}
|
||||
|
||||
protected class OverlayUICallbacksGoImpl extends OverlayUICallbacksImpl
|
||||
|
||||
Reference in new issue
Block a user