File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
owncloud/android/ui/fragment Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 66 */
77package com.nextcloud.utils
88
9+ import com.owncloud.android.BuildConfig
10+
911object BuildHelper {
1012 const val GPLAY : String = " gplay"
13+
14+ fun isFlavourGPlay (): Boolean = GPLAY == BuildConfig .FLAVOR
1115}
Original file line number Diff line number Diff line change 1616import com .nextcloud .client .device .DeviceInfo ;
1717import com .nextcloud .client .di .Injectable ;
1818import com .nextcloud .client .documentscan .AppScanOptionalFeature ;
19+ import com .nextcloud .utils .BuildHelper ;
1920import com .nextcloud .utils .EditorUtils ;
2021import com .owncloud .android .R ;
2122import com .owncloud .android .databinding .FileListActionsBottomSheetCreatorBinding ;
@@ -156,6 +157,11 @@ protected void onCreate(Bundle savedInstanceState) {
156157 binding .menuCreateRichWorkspaceDivider .setVisibility (View .GONE );
157158 }
158159
160+ if (BuildHelper .INSTANCE .isFlavourGPlay ()) {
161+ binding .menuUploadFiles .setVisibility (View .GONE );
162+ binding .uploadContentFromOtherApps .setText (getContext ().getString (R .string .upload_files ));
163+ }
164+
159165 setupClickListener ();
160166 }
161167
Original file line number Diff line number Diff line change 9494 app : tint =" @color/primary" />
9595
9696 <TextView
97+ android : id =" @+id/upload_content_from_other_apps"
9798 android : layout_width =" wrap_content"
9899 android : layout_height =" wrap_content"
99100 android : layout_gravity =" center_vertical"
You can’t perform that action at this time.
0 commit comments