添加分屏测试功能支持多窗口MainActivity
This commit is contained in:
@@ -59,6 +59,7 @@ public class LogActivity extends Activity {
|
||||
*/
|
||||
public static void startLogActivity(Context context, boolean newTask) {
|
||||
Intent intent = new Intent(context, LogActivity.class);
|
||||
intent.setFlags(0);
|
||||
|
||||
if (newTask) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
@@ -70,6 +71,7 @@ public class LogActivity extends Activity {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
|
||||
|
||||
Rect bounds = new Rect();
|
||||
if (context instanceof Activity) {
|
||||
Activity activity = (Activity) context;
|
||||
|
||||
Reference in New Issue
Block a user