Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timrae committed Sep 12, 2015
1 parent 48a8d63 commit e111182
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.ichi2.apisample"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat" >
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/com/ichi2/apisample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ShareCompat;
import android.support.v4.content.ContextCompat;
Expand Down Expand Up @@ -55,7 +56,8 @@ protected void onCreate(Bundle savedInstanceState) {
}


public void onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) {
public void onRequestPermissionsResult (int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
if (requestCode==AD_PERM_REQUEST && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
addCardsToAnkiDroid(getSelectedData());
} else {
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<string name="settings">Settings</string>
<string name="n_items_selected">%d items selected</string>
<string name="n_items_added">%d items added to AnkiDroid</string>
<string name="deck_add_fail">Error creating deck in AnkiDroid</string>
<string name="model_add_fail">Error creating model in AnkiDroid</string>
<string name="card_add_fail">Error adding cards to AnkiDroid</string>
<string name="confirm_add_models">A new note type and deck will be added to AnkiDroid</string>
<string name="permission_denied">Couldn't get permission to access the AnkiDroid database</string>
<string name="permission_denied">Couldn\'t get permission to access the AnkiDroid database</string>
</resources>

0 comments on commit e111182

Please sign in to comment.