Move GalleryInfoBottomSheet out of scene package to allow obfuscate and repackage

This commit is contained in:
tarsin committed 2022-11-15 21:46:00 +08:00
1 parent 1b326a86a2
commit 7f76e58e4e
2 files changed
+3 -3

No files matched your search

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hippo.ehviewer.ui.scene
package com.hippo.ehviewer.ui
import android.os.Bundle
import android.view.LayoutInflater
@@ -31,7 +31,6 @@ import com.hippo.ehviewer.UrlOpener
import com.hippo.ehviewer.client.EhUrl
import com.hippo.ehviewer.client.EhUtils
import com.hippo.ehviewer.client.data.GalleryDetail
import com.hippo.ehviewer.ui.MainActivity
import com.hippo.ehviewer.ui.scene.BaseScene.LENGTH_SHORT
import com.hippo.util.addTextToClipboard
import com.hippo.util.getClipboardManager
@@ -171,7 +170,7 @@ class GalleryInfoBottomSheet(detail: GalleryDetail) : BottomSheetDialogFragment(
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): InfoHolder {
return InfoHolder(
mInflater.inflate(
if (viewType == Companion.TYPE_HEADER) R.layout.item_gallery_info_header else R.layout.item_gallery_info_data,
if (viewType == TYPE_HEADER) R.layout.item_gallery_info_header else R.layout.item_gallery_info_data,
parent,
false
)
@@ -98,6 +98,7 @@ import com.hippo.ehviewer.gallery.GalleryProvider2;
import com.hippo.ehviewer.spider.SpiderDen;
import com.hippo.ehviewer.ui.CommonOperations;
import com.hippo.ehviewer.ui.GalleryActivity;
import com.hippo.ehviewer.ui.GalleryInfoBottomSheet;
import com.hippo.ehviewer.ui.MainActivity;
import com.hippo.ehviewer.ui.annotation.WholeLifeCircle;
import com.hippo.ehviewer.widget.GalleryRatingBar;