summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-04-02 12:53:07 -0400
committerJason Monk <jmonk@google.com>2015-04-03 13:37:28 -0400
commit630bf0bd3f37417cc5c19bc4f0ff8c94a6ec085c (patch)
tree29aa800187268ca86e97213a555f6d36e0c9af34 /res/layout
parent0de1d79bbdc6249e546fc114ec4c57153f7d9b9d (diff)
downloadandroid_packages_apps_PackageInstaller-630bf0bd3f37417cc5c19bc4f0ff8c94a6ec085c.tar.gz
android_packages_apps_PackageInstaller-630bf0bd3f37417cc5c19bc4f0ff8c94a6ec085c.tar.bz2
android_packages_apps_PackageInstaller-630bf0bd3f37417cc5c19bc4f0ff8c94a6ec085c.zip
Handle apps with no permissions (don't crash)
Change-Id: I186b14cc7edb1de53df4e7e8bf299af09009f15b
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/permissions_frame.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/res/layout/permissions_frame.xml b/res/layout/permissions_frame.xml
new file mode 100644
index 00000000..e70aaf63
--- /dev/null
+++ b/res/layout/permissions_frame.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ 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.
+-->
+
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <TextView
+ android:id="@+id/no_permissions"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:text="@string/no_permissions"
+ android:gravity="center"
+ android:textAppearance="@android:style/TextAppearance.Large"
+ />
+
+</FrameLayout>