Search in sources :

Example 1 with CacheStorageUsageInfo

use of com.android.gallery3d.ui.CacheStorageUsageInfo in project android_packages_apps_Gallery2 by LineageOS.

the class ManageCachePage method onCreate.

@Override
public void onCreate(Bundle data, Bundle restoreState) {
    super.onCreate(data, restoreState);
    mCacheStorageInfo = new CacheStorageUsageInfo(mActivity);
    initializeViews();
    initializeData(data);
    mEyePosition = new EyePosition(mActivity.getAndroidContext(), this);
    mHandler = new SynchronizedHandler(mActivity.getGLRoot()) {

        @Override
        public void handleMessage(Message message) {
            switch(message.what) {
                case MSG_REFRESH_STORAGE_INFO:
                    refreshCacheStorageInfo();
                    break;
                case MSG_REQUEST_LAYOUT:
                    {
                        mLayoutReady = true;
                        removeMessages(MSG_REQUEST_LAYOUT);
                        mRootPane.requestLayout();
                        break;
                    }
            }
        }
    };
}
Also used : Message(android.os.Message) CacheStorageUsageInfo(com.android.gallery3d.ui.CacheStorageUsageInfo) SynchronizedHandler(com.android.gallery3d.ui.SynchronizedHandler)

Aggregations

Message (android.os.Message)1 CacheStorageUsageInfo (com.android.gallery3d.ui.CacheStorageUsageInfo)1 SynchronizedHandler (com.android.gallery3d.ui.SynchronizedHandler)1