Skip to content

Commit

Permalink
[FIX] 修复客户端列表点击无效
Browse files Browse the repository at this point in the history
  • Loading branch information
xausky committed Feb 10, 2018
1 parent a9a454a commit 1751b21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "io.github.xausky.bh3modmanager"
minSdkVersion 19
targetSdkVersion 26
versionCode 10
versionName "v1.0"
versionCode 11
versionName "v1.1"
ndk{
moduleName "zip"
abiFilters "armeabi-v7a","x86"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ public void onClick(View view) {
context.chooseFile(dialog, MainActivity.CHOOSE_APK_REQUEST_CODE);
}
});
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
ApplicationInfo info = (ApplicationInfo) parent.getAdapter().getItem(position);
install(info.sourceDir);
dialog.dismiss();
}
});
}

public void install(final String path){
Expand Down

0 comments on commit 1751b21

Please sign in to comment.