Remove lifecycle annotation
We turned to viewbinding
This commit is contained in:
1 parent
f0f7a88cfb
commit
333c8e812d
5 files changed
-124
No files matched your search
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2016 Hippo Seven
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.hippo.ehviewer.ui.annotation;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Created in {@link Fragment#onCreateView(LayoutInflater, ViewGroup, Bundle)},
|
||||
* destroyed in {@link Fragment#onDestroyView()}.
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ElementType.FIELD})
|
||||
public @interface DrawerLifeCircle {
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2016 Hippo Seven
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.hippo.ehviewer.ui.annotation;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Created in {@link Fragment#onCreateView(LayoutInflater, ViewGroup, Bundle)},
|
||||
* destroyed in {@link Fragment#onDestroyView()}.
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ElementType.FIELD})
|
||||
public @interface ViewLifeCircle {
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* Copyright 2016 Hippo Seven
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.hippo.ehviewer.ui.annotation;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Created in {@link Fragment#onCreate(Bundle)} or {@link Activity#onCreate(Bundle)},
|
||||
* destroyed in {@link Fragment#onDestroy()} or {@link Activity#onDestroy()}.
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ElementType.FIELD})
|
||||
public @interface WholeLifeCircle {
|
||||
}
|
||||
@@ -57,9 +57,6 @@ import com.hippo.ehviewer.client.data.FavListUrlBuilder
|
||||
import com.hippo.ehviewer.client.data.GalleryInfo
|
||||
import com.hippo.ehviewer.client.parser.FavoritesParser
|
||||
import com.hippo.ehviewer.ui.CommonOperations
|
||||
import com.hippo.ehviewer.ui.annotation.DrawerLifeCircle
|
||||
import com.hippo.ehviewer.ui.annotation.ViewLifeCircle
|
||||
import com.hippo.ehviewer.ui.annotation.WholeLifeCircle
|
||||
import com.hippo.ehviewer.widget.GalleryInfoContentHelper
|
||||
import com.hippo.widget.ContentLayout
|
||||
import com.hippo.widget.FabLayout
|
||||
@@ -85,33 +82,24 @@ class FavoritesScene : SearchBarScene(), OnDragHandlerListener, OnClickFabListen
|
||||
var limit // -1 for error
|
||||
= 0
|
||||
|
||||
@ViewLifeCircle
|
||||
private var mRecyclerView: EasyRecyclerView? = null
|
||||
|
||||
@ViewLifeCircle
|
||||
private var mFabLayout: FabLayout? = null
|
||||
|
||||
@ViewLifeCircle
|
||||
private var mAdapter: FavoritesAdapter? = null
|
||||
|
||||
@ViewLifeCircle
|
||||
private var mHelper: FavoritesHelper? = null
|
||||
private var mActionFabDrawable: AddDeleteDrawable? = null
|
||||
private var mDrawerLayout: DrawerLayout? = null
|
||||
|
||||
@DrawerLifeCircle
|
||||
private var mDrawerAdapter: FavDrawerAdapter? = null
|
||||
|
||||
@WholeLifeCircle
|
||||
private var mClient: EhClient? = null
|
||||
|
||||
@WholeLifeCircle
|
||||
private var mFavCatArray: Array<String>? = Settings.getFavCat()
|
||||
|
||||
@WholeLifeCircle
|
||||
private var mFavCountArray: IntArray? = Settings.getFavCount()
|
||||
|
||||
@WholeLifeCircle
|
||||
private var mUrlBuilder: FavListUrlBuilder? = null
|
||||
private val showNormalFabsRunnable = Runnable {
|
||||
if (mFabLayout != null) {
|
||||
|
||||
@@ -91,7 +91,6 @@ import com.hippo.ehviewer.spider.SpiderDen
|
||||
import com.hippo.ehviewer.ui.CommonOperations
|
||||
import com.hippo.ehviewer.ui.GalleryInfoBottomSheet
|
||||
import com.hippo.ehviewer.ui.MainActivity
|
||||
import com.hippo.ehviewer.ui.annotation.WholeLifeCircle
|
||||
import com.hippo.ehviewer.ui.scene.GalleryListScene.Companion.getStartArgs
|
||||
import com.hippo.ehviewer.widget.GalleryRatingBar
|
||||
import com.hippo.ehviewer.widget.GalleryRatingBar.OnUserRateListener
|
||||
@@ -125,7 +124,6 @@ class GalleryDetailScene : CollapsingToolbarScene(), View.OnClickListener, Downl
|
||||
private var mViewTransition: ViewTransition? = null
|
||||
private var mViewTransition2: ViewTransition? = null
|
||||
|
||||
@WholeLifeCircle
|
||||
private var mDownloadState = 0
|
||||
private var mAction: String? = null
|
||||
private var mGalleryInfo: GalleryInfo? = null
|
||||
|
||||
Reference in new issue
Block a user