/** * Go up on level, same as pressing on "..". */ public override void GoUp() { MCurrentPath = GetParent(MCurrentPath); MCheckedItems.Clear(); MCheckedVisibleViewHolders.Clear(); Refresh(MCurrentPath); }
/** * Go up on level, same as pressing on "..". */ public override void GoUp() { var rootPath = GetParent(GetPath(Arguments.GetString(KeyStartPath, "/"))) as File; var newPath = GetParent(MCurrentPath) as File; //Block going further up than internal storage root. if (newPath.AbsolutePath == rootPath.AbsolutePath) { return; } MCurrentPath = newPath; MCheckedItems.Clear(); MCheckedVisibleViewHolders.Clear(); Refresh(MCurrentPath); }