This repository was archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add defaults to AppSettingsDialog and string res #74
Merged
samtstern
merged 19 commits into
googlesamples:master
from
SUPERCILEX:defaults-and-string-res
Jan 25, 2017
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c89a2dc
Update dependencies and extract constants.gradle
SUPERCILEX 9be3f11
Merge remote-tracking branch 'easypermissions/master'
SUPERCILEX 0aeeca7
Fix merge mistakes
SUPERCILEX 9416367
More dep updates
SUPERCILEX d51702e
Add default values for rationale and title to AppSettingsDialog.java.…
SUPERCILEX 70958eb
Update .travis.yml
SUPERCILEX 7d857e7
Merge branch 'master' into defaults-and-string-res
SUPERCILEX db9ad8c
Cleanup
SUPERCILEX 041f92f
I guess lint turns itself in android gradle tools 2.3 so make it happy
SUPERCILEX e564758
Update documentation
SUPERCILEX 8089cd6
Merge remote-tracking branch 'easypermissions/master' into defaults-a…
SUPERCILEX 14b2e6b
Cleanup
SUPERCILEX 84d7dd8
Change string rsc
SUPERCILEX 13ab4e6
Merge remote-tracking branch 'easypermissions/master' into defaults-a…
SUPERCILEX d8dd887
Fix merge mistakes
SUPERCILEX 8f89c7e
Fix Travis
SUPERCILEX 6073742
Merge remote-tracking branch 'easypermissions/master' into defaults-a…
SUPERCILEX 3913483
Fix merge mistakes
SUPERCILEX 571000f
Fix mistakes
SUPERCILEX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
tools:context=".BasicActivity"> | ||
|
||
<Button | ||
android:id="@+id/button_request" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Request" /> | ||
android:text="Request" | ||
tools:ignore="HardcodedText"/> | ||
|
||
</LinearLayout> | ||
</LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<FrameLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
|
||
<Button | ||
android:id="@+id/button_sms" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="SMS" /> | ||
android:text="@string/sms" /> | ||
|
||
</FrameLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<resources> | ||
<string name="app_name">PermissionsTest</string> | ||
<string name="app_name">Easy Permissions</string> | ||
<string name="rationale_camera">This app needs access to your camera so you can take pictures.</string> | ||
<string name="rationale_location_contacts">This app needs access to your location and contacts to know where and who you are.</string> | ||
<string name="rationale_sms">This app needs access to your sms to read all your great messages.</string> | ||
<string name="rationale_ask_again">This app may not work correctly without the requested permissions. Open the app settings screen to modify app permissions.</string> | ||
<string name="title_settings_dialog">Permissions Required</string> | ||
<string name="setting">Settings</string> | ||
<string name="cancel">Cancel</string> | ||
<string name="settings_dialog_canceled">Settings dialog canceled</string> | ||
<string name="returned_from_app_settings_to_activity">Returned from app settings to MainActivity</string> | ||
<string name="has_read_sms_permission">Has read sms permission: %b</string> | ||
<string name="camera">Camera</string> | ||
<string name="location_and_contacts">Location and Contacts</string> | ||
<string name="sms">SMS</string> | ||
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<resources> | ||
<string name="rationale_ask_again">This app may not work correctly without the requested permissions. Open the app settings screen to modify app permissions.</string> | ||
<string name="title_settings_dialog">Permissions Required</string> | ||
</resources> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are going to add
@string
resources in other places let's do it here as well rather than ignoring.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't do that because
BasicActivity
isn't part of the sample so it shouldn't pollute thestrings.xml
file. Do you agree with this or should I add it to the strings file anyway?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, that's fine either way then.