Android: Fix build

Former-commit-id: 719e9ea62eafb45c238f551591567005f603190d
This commit is contained in:
Michel Heily 2020-04-10 17:24:57 +03:00
parent 56c3c5ce3b
commit 6db7c565b7
3 changed files with 3 additions and 4 deletions

View file

@ -25,8 +25,8 @@ cargo {
prebuiltToolchains = true
verbose = true
profile = 'release'
module = "../../bindings/rustboyadvance-jni"
targetDirectory = '../../target'
module = "../../../bindings/rustboyadvance-jni"
targetDirectory = '../../../target'
libname = "rustboyadvance_jni"
targets = ['x86', 'arm64']
apiLevel = 21

View file

@ -363,7 +363,6 @@ public class EmulatorActivity extends AppCompatActivity implements View.OnClickL
findViewById(R.id.bDpadDown).setOnTouchListener(this);
findViewById(R.id.bDpadLeft).setOnTouchListener(this);
findViewById(R.id.bDpadRight).setOnTouchListener(this);
findViewById(R.id.dpad_layout).setOnTouchListener(this);
turboButton = findViewById(R.id.tbTurbo);
turboButton.setOnClickListener(this);

View file

@ -49,7 +49,7 @@ public class RomListItemAdapter extends ArrayAdapter<RomMetadataEntry> {
if (screenshot != null) {
screenshotImageView.setImageBitmap(screenshot);
} else {
screenshotImageView.setImageBitmap(BitmapFactory.decodeResource(context.getResources(), R.drawable.icon));
screenshotImageView.setImageBitmap(BitmapFactory.decodeResource(context.getResources(), R.mipmap.ic_launcher));
}