Skip to content

Commit

Permalink
Updated all references for Activity to AppCompatActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
topherbuckley authored and hannesa2 committed Dec 6, 2020
1 parent 353e381 commit 294ac36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
import ioio.lib.util.IOIOLooper;
import ioio.lib.util.IOIOLooperProvider;

import android.app.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;

/**
* A convenience class for easy creation of IOIO-based activities.
* <p>
* It is used by creating a concrete {@link Activity} in your application, which
* It is used by creating a concrete {@link AppCompatActivity} in your application, which
* extends this class. This class then takes care of proper creation and
* abortion of the IOIO connection and of a dedicated thread for IOIO
* communication.
Expand Down Expand Up @@ -69,7 +69,7 @@
* example, in the case of {@link SocketIOIOConnection}, the second argument
* will contain an {@link Integer} representing the local port number.
*/
public abstract class IOIOActivity extends Activity implements
public abstract class IOIOActivity extends AppCompatActivity implements
IOIOLooperProvider {
private final IOIOAndroidApplicationHelper helper_ = new IOIOAndroidApplicationHelper(this, this);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package ioio.examples.hello_service;

import android.app.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends Activity {
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.Iterator;

import android.app.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
Expand All @@ -17,7 +17,7 @@

import com.google.common.collect.SortedMultiset;

public class IOIOConnectionTesterActivity extends Activity implements
public class IOIOConnectionTesterActivity extends AppCompatActivity implements
IOIOConnectionThreadProvider {
static {
IOIOConnectionRegistry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
package ioio.manager;

import android.app.Activity;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
Expand All @@ -43,7 +43,7 @@
import java.net.URL;
import java.net.URLConnection;

public class DownloadUrlActivity extends Activity implements Runnable, FileReturner {
public class DownloadUrlActivity extends AppCompatActivity implements Runnable, FileReturner {
public static final String URL_EXTRA = "URL";
private ProgressDialog dialog_;
private String url_;
Expand Down

0 comments on commit 294ac36

Please sign in to comment.