Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27b7ffa8 authored by jruesga's avatar jruesga
Browse files

New activity "Picker Activity"

This activity allows third party application to browse and get the
content using GET_CONTENT action and a mime/type.
This activity used the NavigationView in jail room mode and it's only
capable of pick a file (actions like open or others are not permitted)

* CleanUp
parent c3340856
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -92,6 +92,19 @@
      android:windowSoftInputMode="adjustNothing" >
    </activity>

    <activity
      android:name=".activities.PickerActivity"
      android:label="@string/picker"
      android:uiOptions="none"
      android:theme="@style/Explorer.Theme.Holo.Ligth.Overlay">
      <intent-filter>
        <action android:name="android.intent.action.GET_CONTENT" />
        <category android:name="android.intent.category.OPENABLE" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="*/*" />
      </intent-filter>
    </activity>

    <activity
      android:name=".activities.preferences.SettingsPreferences"
      android:label="@string/pref"
+1 −2
Original line number Diff line number Diff line
@@ -15,8 +15,7 @@
 ** limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/default_background" >
  android:layout_height="match_parent">

  <ListView
    xmlns:android="http://schemas.android.com/apk/res/android"
+1 −2
Original line number Diff line number Diff line
@@ -15,8 +15,7 @@
 ** limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/default_background">
  android:layout_height="match_parent">

  <TextView
    android:id="@+id/history_empty_msg"
+6 −4
Original line number Diff line number Diff line
@@ -13,18 +13,20 @@
 ** 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:cmexplorer="http://schemas.android.com/apk/res/com.cyanogenmod.explorer"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:background="@color/default_background" >
  android:orientation="vertical">

  <!-- Navigation View -->
  <com.cyanogenmod.explorer.ui.widgets.NavigationView
    android:id="@+id/navigation_view"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="1" />
    android:layout_weight="1"
    cmexplorer:navigation="browsable" />

  <!-- SelectionBar -->
  <com.cyanogenmod.explorer.ui.widgets.SelectionView
+3 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
    android:layout_height="match_parent"
    android:layout_alignParentTop="true"
    android:layout_toRightOf="@id/navigation_view_item_check"
    android:layout_alignWithParentIfMissing="true"
    android:contentDescription="@null"
    android:src="@null" />

@@ -48,7 +49,8 @@
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_toLeftOf="@id/navigation_view_item_menu"
    android:layout_toRightOf="@id/navigation_view_item_icon" >
    android:layout_toRightOf="@id/navigation_view_item_icon"
    android:layout_alignWithParentIfMissing="true">

    <TextView
      android:id="@+id/navigation_view_item_name"
Loading