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;
}
}
}
};
}
Aggregations