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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/HelpActivity.java

Issue 1322933002: Fix deprecation warnings in remoting/android/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chromoting; 5 package org.chromium.chromoting;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.ComponentName; 8 import android.content.ComponentName;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.ServiceConnection; 10 import android.content.ServiceConnection;
11 import android.content.pm.PackageInfo; 11 import android.content.pm.PackageInfo;
12 import android.content.pm.PackageManager; 12 import android.content.pm.PackageManager;
13 import android.graphics.Bitmap; 13 import android.graphics.Bitmap;
14 import android.net.Uri; 14 import android.net.Uri;
15 import android.os.Binder; 15 import android.os.Binder;
16 import android.os.Bundle; 16 import android.os.Bundle;
17 import android.os.IBinder; 17 import android.os.IBinder;
18 import android.os.Parcel; 18 import android.os.Parcel;
19 import android.os.RemoteException; 19 import android.os.RemoteException;
20 import android.support.v7.app.ActionBarActivity; 20 import android.support.v7.app.AppCompatActivity;
21 import android.text.TextUtils; 21 import android.text.TextUtils;
22 import android.util.Log; 22 import android.util.Log;
23 import android.view.Menu; 23 import android.view.Menu;
24 import android.view.MenuItem; 24 import android.view.MenuItem;
25 import android.view.View; 25 import android.view.View;
26 import android.webkit.WebView; 26 import android.webkit.WebView;
27 import android.webkit.WebViewClient; 27 import android.webkit.WebViewClient;
28 28
29 import org.chromium.ui.UiUtils; 29 import org.chromium.ui.UiUtils;
30 30
31 /** 31 /**
32 * The Activity for showing the Help screen. 32 * The Activity for showing the Help screen.
33 */ 33 */
34 public class HelpActivity extends ActionBarActivity { 34 public class HelpActivity extends AppCompatActivity {
35 private static final String PLAY_STORE_URL = "market://details?id="; 35 private static final String PLAY_STORE_URL = "market://details?id=";
36 private static final String CREDITS_URL = "file:///android_res/raw/credits.h tml"; 36 private static final String CREDITS_URL = "file:///android_res/raw/credits.h tml";
37 37
38 private static final String FEEDBACK_PACKAGE = "com.google.android.gms"; 38 private static final String FEEDBACK_PACKAGE = "com.google.android.gms";
39 39
40 private static final String FEEDBACK_CLASS = 40 private static final String FEEDBACK_CLASS =
41 "com.google.android.gms.feedback.LegacyBugReportService"; 41 "com.google.android.gms.feedback.LegacyBugReportService";
42 42
43 /** 43 /**
44 * Maximum dimension for the screenshot to be sent to the Send Feedback hand ler. This size 44 * Maximum dimension for the screenshot to be sent to the Send Feedback hand ler. This size
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 openUrl(PLAY_STORE_URL + getPackageName()); 170 openUrl(PLAY_STORE_URL + getPackageName());
171 return true; 171 return true;
172 } 172 }
173 if (id == R.id.actionbar_credits) { 173 if (id == R.id.actionbar_credits) {
174 mWebView.loadUrl(CREDITS_URL); 174 mWebView.loadUrl(CREDITS_URL);
175 return true; 175 return true;
176 } 176 }
177 return super.onOptionsItemSelected(item); 177 return super.onOptionsItemSelected(item);
178 } 178 }
179 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698