Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java

Issue 1431663002: Update android SDK to API version 23. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Folloe review Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java b/shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java
index 46e7d480987cc8cec8d7f3454cc69d217425ea38..3db85372b1b46a49dcacca64107d534ef89fb80a 100644
--- a/shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java
+++ b/shell/android/apk/src/org/chromium/mojo/shell/NfcReceiverActivity.java
@@ -4,14 +4,12 @@
package org.chromium.mojo.shell;
-import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
-import android.os.Bundle;
import android.os.Parcelable;
import org.chromium.mojo.application.ShellHelper;
@@ -23,15 +21,17 @@ import java.util.ArrayDeque;
/**
* Activity for receiving nfc messages.
*/
-public class NfcReceiverActivity extends Activity implements ShellService.IShellBindingActivity {
+public class NfcReceiverActivity
+ extends BaseActivity implements ShellService.IShellBindingActivity {
private ArrayDeque<Intent> mPendingIntents = new ArrayDeque<Intent>();
private ShellService mShellService;
private ServiceConnection mShellServiceConnection;
+ /**
+ * @see BaseActivity#onCreateWithPermissions()
+ */
@Override
- protected void onCreate(final Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
+ void onCreateWithPermissions() {
Intent serviceIntent = new Intent(this, ShellService.class);
startService(serviceIntent);
mShellServiceConnection = new ShellService.ShellServiceConnection(this);

Powered by Google App Engine
This is Rietveld 408576698