version:5.6
fix: update:设置默认桌面不再打开
This commit is contained in:
@@ -10,6 +10,7 @@ import android.util.Log;
|
||||
import com.aoleyun.sn.SystemInfoInterface;
|
||||
import com.aoleyun.sn.utils.ForegroundAppUtil;
|
||||
import com.aoleyun.sn.utils.JGYUtils;
|
||||
import com.aoleyun.sn.utils.SPUtils;
|
||||
import com.aoleyun.sn.utils.Utils;
|
||||
|
||||
import java.util.List;
|
||||
@@ -63,12 +64,14 @@ public class RemoteService extends Service {
|
||||
|
||||
@Override
|
||||
public boolean SystemPutInt(String name, int value) throws RemoteException {
|
||||
Log.e(TAG, "SystemPutInt: " + "name = " + name + "\t value = " + value);
|
||||
return Settings.System.putInt(getContentResolver(), name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDefaultDesktop(String pkg) throws RemoteException {
|
||||
JGYUtils.getInstance().setDefaultDesktop(pkg);
|
||||
SPUtils.put(RemoteService.this, "default_launcher", pkg);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user