Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ag2s20150909 committed Nov 11, 2022
1 parent f86711e commit e80ceab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
android:theme="@style/Theme.Cronet"
tools:targetApi="n">
<meta-data
android:name="prefSo"
android:name="prefCronetSo"
android:value="true" />

<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
* CronetClient soLoader
*/
public class CronetLoader extends CronetEngine.Builder.LibraryLoader {

public static final String PREF_CRONET_SO = "prefCronetSo";
/**
* 打包时是否包含Cronet so
* Whether the aar package include cronet so when package,
Expand Down Expand Up @@ -79,7 +81,7 @@ public class CronetLoader extends CronetEngine.Builder.LibraryLoader {

try {
ApplicationInfo appInfo = mContext.getPackageManager().getApplicationInfo(mContext.getPackageName(), PackageManager.GET_META_DATA);
prefSo = appInfo.metaData.getBoolean("prefSo", false);
prefSo = appInfo.metaData.getBoolean(PREF_CRONET_SO, false);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit e80ceab

Please sign in to comment.