Files always visible, same for new window menu.
Remove "productivity_device" bit. Change-Id: I28ee3e210fc5f8c367d45a74edab0e04667ddd5e
This commit is contained in:
@@ -54,8 +54,7 @@
|
||||
android:name=".LauncherActivity"
|
||||
android:theme="@android:style/Theme.NoDisplay"
|
||||
android:icon="@drawable/ic_files_app"
|
||||
android:label="@string/files_label"
|
||||
android:enabled="@bool/productivity_device">
|
||||
android:label="@string/files_label">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<!-- Allow Advanced Devices default value to be customised -->
|
||||
<bool name="config_defaultAdvancedDevices">false</bool>
|
||||
|
||||
<bool name="productivity_device">true</bool>
|
||||
<!-- Intentionally unset. Vendors should set this in an overlay. -->
|
||||
<string name="trusted_quick_viewer_package"></string>
|
||||
</resources>
|
||||
|
||||
@@ -104,7 +104,6 @@ public abstract class BaseActivity extends Activity implements SearchManagerList
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
|
||||
mProductivityDevice = getResources().getBoolean(R.bool.productivity_device);
|
||||
mState = (icicle != null)
|
||||
? icicle.<State>getParcelable(EXTRA_STATE)
|
||||
: buildState();
|
||||
|
||||
@@ -256,9 +256,6 @@ public class FilesActivity extends BaseActivity {
|
||||
|
||||
pasteFromCb.setEnabled(mClipper.hasItemsToPaste());
|
||||
|
||||
newWindow.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
|
||||
newWindow.setVisible(mProductivityDevice);
|
||||
|
||||
Menus.disableHiddenItems(menu, pasteFromCb);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user