2016-04-04 48 views

回答

4

原因是Stetho內部存在限制。在類

com.facebook.stetho.inspector.protocol.module.Database

https://github.com/facebook/stetho/blob/36aa5bd356d9cf5893b9424b06a83dda9ec5e44f/stetho/src/main/java/com/facebook/stetho/inspector/protocol/module/Database.java

有了這個信息 -

/** 
    * The protocol doesn't offer an efficient means of pagination or anything like that so 
    * we'll just cap the result list to some arbitrarily large number that I think folks will 
    * actually need in practice. 
    * <p> 
    * Note that when this limit is exceeded, a dummy row will be introduced that indicates 
    * truncation occurred. 
    */ 
    private static final int MAX_EXECUTE_RESULTS = 250; 

所以,如果你真的需要一個比較大的數字,你可以更改庫的源代碼,並添加不同的最大值。

+2

這個值應該暴露在設置中! /捂臉 –

相關問題