File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
app/src/main/java/com/owncloud/android/ui/adapter Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 1212import android .accounts .AccountManager ;
1313import android .annotation .SuppressLint ;
1414import android .app .Activity ;
15- import android .content .ComponentCallbacks ;
1615import android .content .res .ColorStateList ;
17- import android .content .res .Configuration ;
1816import android .content .res .Resources ;
1917import android .graphics .Color ;
2018import android .graphics .drawable .Drawable ;
@@ -189,17 +187,6 @@ public OCFileListAdapter(
189187 // initialise thumbnails cache on background thread
190188 ThumbnailsCacheManager .initDiskCacheAsync ();
191189 isRTL = DisplayUtils .isRTL ();
192-
193- activity .registerComponentCallbacks (new ComponentCallbacks () {
194- @ SuppressLint ("NotifyDataSetChanged" )
195- @ Override
196- public void onConfigurationChanged (@ NonNull Configuration newConfig ) {
197- notifyDataSetChanged (); // force update of orientation-dependent layout (e.g. share button visibility)
198- }
199- @ Override
200- public void onLowMemory () {
201- }
202- });
203190 }
204191
205192 public boolean isMultiSelect () {
Original file line number Diff line number Diff line change 88package com.owncloud.android.ui.adapter
99
1010import android.content.Context
11- import android.content.res.Configuration
1211import android.view.View
1312import android.widget.ImageView
1413import androidx.core.content.ContextCompat
@@ -218,7 +217,6 @@ class OCFileListDelegate(
218217 // shares
219218 val shouldHideShare = (
220219 hideItemOptions ||
221- context.resources.configuration.orientation == Configuration .ORIENTATION_PORTRAIT ||
222220 ! file.isFolder &&
223221 file.isEncrypted ||
224222 file.isEncrypted &&
You can’t perform that action at this time.
0 commit comments