Giter Site home page Giter Site logo

Android6.0 崩溃 about launcher3 HOT 6 CLOSED

launcher3-dev avatar launcher3-dev commented on August 20, 2024
Android6.0 崩溃

from launcher3.

Comments (6)

yuchuangu85 avatar yuchuangu85 commented on August 20, 2024

@Wangjiaxing123 你是用的master分支还是哪个分支,我修改一下整个问题。

from launcher3.

gavin0x00 avatar gavin0x00 commented on August 20, 2024

master分支

from launcher3.

yuchuangu85 avatar yuchuangu85 commented on August 20, 2024

@Wangjiaxing123 已经修改了,你试试。

from launcher3.

gavin0x00 avatar gavin0x00 commented on August 20, 2024

还是不行,不知道是不是我机器ROM的问题

from launcher3.

yuchuangu85 avatar yuchuangu85 commented on August 20, 2024

@Wangjiaxing123 你看看LauncherAppState里面最下面是不是这个代码。
private static LauncherProvider getLocalProvider(Context context) {
// modify by codemx.cn --20190322--------start
LauncherProvider provider = null;
try {
ContentProviderClient client = context.getContentResolver()
.acquireContentProviderClient(LauncherProvider.AUTHORITY);
if (client != null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {//>24
client.close();
} else {
client.release();
}
provider = (LauncherProvider) client.getLocalContentProvider();
} else {
Log.e("TAG", " can't get ContentProviderClient--- ");
}
} catch (Exception e) {
Log.e("TAG", e.getMessage());
}
return provider;
// modify by codemx.cn --20190322--------end
}

from launcher3.

gavin0x00 avatar gavin0x00 commented on August 20, 2024

ok了,我本地没有pull到最新的

from launcher3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.