Skip to content

Commit

Permalink
RC5发布,修复打模组后卡顿问题,以及部分闪退问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xausky committed Apr 4, 2018
1 parent 445e284 commit 51f18f2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}

dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath 'io.fabric.tools:gradle:1.25.2'
}
}
apply plugin: 'com.android.application'
Expand All @@ -22,7 +22,7 @@ android {
minSdkVersion 15
targetSdkVersion 22
versionCode 220
versionName "2.2.0-rc4"
versionName "2.2.0-rc5"
ndk{
abiFilters "armeabi-v7a","x86"
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/cpp/libuabe/ZipFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ namespace xausky {
Utils::FreeBundlePatch(patch);
int len = patchedBundle.size();
patchedBundle.ReadData(dataBuffer, len);
mz_zip_writer_add_mem(out, entrityStat->m_filename, dataBuffer, len, MZ_DEFAULT_COMPRESSION);
mz_zip_writer_add_mem(out, entrityStat->m_filename, dataBuffer, len, MZ_NO_COMPRESSION);
__LIBUABE_LOG("bundle patch: %s\n", entrityStat->m_filename);
return;
} else {
__LIBUABE_LOG("mz_zip_reader_extract_to_mem() failed!\n");
}
}
if(S_ISREG(modStat.st_mode)){
mz_zip_writer_add_file(out, entrityStat->m_filename, pathBuffer, NULL, 0, MZ_DEFAULT_COMPRESSION);
mz_zip_writer_add_file(out, entrityStat->m_filename, pathBuffer, NULL, 0, MZ_NO_COMPRESSION);
__LIBUABE_LOG("copy patch: %s\n", entrityStat->m_filename);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,16 @@ public int getItemCount(){
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
if(view == null){
view = inflater.inflate(R.layout.attach_fragment, container, false);
context = inflater.getContext();
progressDialog = new ProgressDialog(context);
progressDialog.setTitle(R.string.progress_dialog_title);
progressDialog.setMessage(getString(R.string.progress_dialog_message));
progressDialog.setCancelable(false);
dialog = new ApplicationChooseDialog(context, this, ALL_APPLICATION_PACKAGE_REGEX, true, true);
dialog.setListener(this);
attaches = (RecyclerView) view.findViewById(R.id.attach_list);
adapter.setRecyclerView(attaches);
}
view = inflater.inflate(R.layout.attach_fragment, container, false);
context = inflater.getContext();
progressDialog = new ProgressDialog(context);
progressDialog.setTitle(R.string.progress_dialog_title);
progressDialog.setMessage(getString(R.string.progress_dialog_message));
progressDialog.setCancelable(false);
dialog = new ApplicationChooseDialog(context, this, ALL_APPLICATION_PACKAGE_REGEX, true, true);
dialog.setListener(this);
attaches = (RecyclerView) view.findViewById(R.id.attach_list);
adapter.setRecyclerView(attaches);
return view;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ public int getItemCount(){
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
if(view == null){
view = inflater.inflate(R.layout.visibility_fragment, container, false);
homeFragment = (HomeFragment) BaseFragment.fragment(R.id.nav_home);
context = inflater.getContext();
dialog = new ApplicationChooseDialog(context, this, ALL_APPLICATION_PACKAGE_REGEX, false, true);
dialog.setListener(this);
attaches = (RecyclerView) view.findViewById(R.id.visibility_list);
adapter.setRecyclerView(attaches);
}
view = inflater.inflate(R.layout.visibility_fragment, container, false);
homeFragment = (HomeFragment) BaseFragment.fragment(R.id.nav_home);
context = inflater.getContext();
dialog = new ApplicationChooseDialog(context, this, ALL_APPLICATION_PACKAGE_REGEX, false, true);
dialog.setListener(this);
attaches = (RecyclerView) view.findViewById(R.id.visibility_list);
adapter.setRecyclerView(attaches);
return view;
}

Expand Down

0 comments on commit 51f18f2

Please sign in to comment.