version:5.6

fix:
update:设置默认桌面不再打开
This commit is contained in:
2022-07-06 09:18:48 +08:00
parent 5b49f1370f
commit 45ce0fc8ee
3 changed files with 27 additions and 13 deletions

View File

@@ -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);
}
};
}