RePlugin icon indicating copy to clipboard operation
RePlugin copied to clipboard

宿主跳转插件Activity,插件UI显示小了一圈

Open 20170911 opened this issue 4 years ago • 0 comments

问题详细描述 Detailed description of the problem

宿主跳转插件Activity,插件UI显示小了一圈 2

复现问题步骤 Steps to reproduce the problem

  1. 快速入门配置
  2. 加载插件,跳转插件Activity
        String demo3Apk = "app-debug.apk";
        String demo3apkPath = "external" + File.separator + demo3Apk;

        // 文件是否已经存在?直接删除重来
        String pluginFilePath = getFilesDir().getAbsolutePath() + File.separator + demo3Apk;
        File pluginFile = new File(pluginFilePath);
        if (pluginFile.exists()) {
            FileUtils.deleteQuietly(pluginFile);
        }

        // 开始复制
        copyAssetsFileToAppFiles(demo3apkPath, demo3Apk);
        PluginInfo info = null;
        if (pluginFile.exists()) {
            info = RePlugin.install(pluginFilePath);
        }

        if (info != null) {
            Intent intent = RePlugin.createIntent(info.getName(), "com.lingshi.plugintest.MainActivity");
            RePlugin.startActivity(MainActivity.this, intent);
        } else {
            Toast.makeText(MainActivity.this, "install external plugin failed", Toast.LENGTH_SHORT).show();
        }

其它重要信息 Other important information

replugin-host-lib/gradle Version: v2.3.4 rePlugin-plugin-lib/gradle Version: v2.3.4

Android API Version: Android 手机型号&ROM(Phone model & ROM): samsung SM-G9650

Logcat上下文 Logcat context

20170911 avatar Feb 03 '21 11:02 20170911