mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Cleanup leftovers on LocationServiceWrapper.
This commit is contained in:
parent
1109ccb314
commit
d40a324154
1 changed files with 0 additions and 24 deletions
|
@ -12,35 +12,11 @@ import org.telegram.ui.ApplicationLoader;
|
|||
import org.telegram.ui.LocationActivity;
|
||||
|
||||
public class LocationServiceWrapper {
|
||||
private ApplicationActivity parentActivity;
|
||||
|
||||
// public LocationServiceWrapper(ApplicationActivity activity) {
|
||||
// parentActivity = activity;
|
||||
// }
|
||||
|
||||
public static boolean isGoogleMapsInstalled() {
|
||||
try {
|
||||
ApplicationInfo info = ApplicationLoader.applicationContext.getPackageManager().getApplicationInfo("com.google.android.apps.maps", 0 );
|
||||
return true;
|
||||
} catch(PackageManager.NameNotFoundException e) {
|
||||
// AlertDialog.Builder builder = new AlertDialog.Builder(parentActivity);
|
||||
// builder.setMessage("Install Google Maps?");
|
||||
// builder.setCancelable(true);
|
||||
// builder.setPositiveButton(getStringEntry(R.string.OK), new DialogInterface.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(DialogInterface dialogInterface, int i) {
|
||||
// try {
|
||||
// Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.google.android.apps.maps"));
|
||||
// startActivity(intent);
|
||||
// } catch (Exception e) {
|
||||
// FileLog.e("tmessages", e);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// builder.setNegativeButton(R.string.Cancel, null);
|
||||
// visibleDialog = builder.create();
|
||||
// visibleDialog.setCanceledOnTouchOutside(true);
|
||||
// visibleDialog.show();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue