mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 19:29:54 +01:00
Remove ViewUtil deprecated methods.
This commit is contained in:
@@ -29,7 +29,6 @@ import org.thoughtcrime.securesms.util.DynamicDarkToolbarTheme;
|
||||
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
||||
import org.thoughtcrime.securesms.util.DynamicTheme;
|
||||
import org.thoughtcrime.securesms.util.MediaUtil;
|
||||
import org.thoughtcrime.securesms.util.ViewUtil;
|
||||
import org.thoughtcrime.securesms.util.WindowUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -74,7 +73,7 @@ public class GiphyActivity extends PassphraseRequiredActivity
|
||||
|
||||
private void initializeToolbar() {
|
||||
|
||||
GiphyActivityToolbar toolbar = ViewUtil.findById(this, R.id.giphy_toolbar);
|
||||
GiphyActivityToolbar toolbar = findViewById(R.id.giphy_toolbar);
|
||||
toolbar.setOnFilterChangedListener(this);
|
||||
toolbar.setOnLayoutChangedListener(this);
|
||||
toolbar.setPersistence(GiphyActivityToolbarTextSecurePreferencesPersistence.fromContext(this));
|
||||
@@ -90,8 +89,8 @@ public class GiphyActivity extends PassphraseRequiredActivity
|
||||
}
|
||||
|
||||
private void initializeResources() {
|
||||
ViewPager viewPager = ViewUtil.findById(this, R.id.giphy_pager);
|
||||
TabLayout tabLayout = ViewUtil.findById(this, R.id.tab_layout);
|
||||
ViewPager viewPager = findViewById(R.id.giphy_pager);
|
||||
TabLayout tabLayout = findViewById(R.id.tab_layout);
|
||||
|
||||
this.gifFragment = new GiphyGifFragment();
|
||||
this.stickerFragment = new GiphyStickerFragment();
|
||||
|
||||
@@ -31,7 +31,6 @@ import org.thoughtcrime.securesms.giph.model.GiphyImage;
|
||||
import org.thoughtcrime.securesms.mms.GlideApp;
|
||||
import org.thoughtcrime.securesms.mms.GlideRequests;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
import org.thoughtcrime.securesms.util.ViewUtil;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
@@ -56,8 +55,8 @@ class GiphyAdapter extends RecyclerView.Adapter<GiphyAdapter.GiphyViewHolder> {
|
||||
|
||||
GiphyViewHolder(View view) {
|
||||
super(view);
|
||||
thumbnail = ViewUtil.findById(view, R.id.thumbnail);
|
||||
gifProgress = ViewUtil.findById(view, R.id.gif_progress);
|
||||
thumbnail = view.findViewById(R.id.thumbnail);
|
||||
gifProgress = view.findViewById(R.id.gif_progress);
|
||||
thumbnail.setOnClickListener(this);
|
||||
gifProgress.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
@@ -44,9 +44,9 @@ public abstract class GiphyFragment extends LoggingFragment implements LoaderMan
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
|
||||
ViewGroup container = ViewUtil.inflate(inflater, viewGroup, R.layout.giphy_fragment);
|
||||
this.recyclerView = ViewUtil.findById(container, R.id.giphy_list);
|
||||
this.loadingProgress = ViewUtil.findById(container, R.id.loading_progress);
|
||||
this.noResultsView = ViewUtil.findById(container, R.id.no_results);
|
||||
this.recyclerView = container.findViewById(R.id.giphy_list);
|
||||
this.loadingProgress = container.findViewById(R.id.loading_progress);
|
||||
this.noResultsView = container.findViewById(R.id.no_results);
|
||||
|
||||
return container;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user