Temporary remove account visibility support pushapiauthenticator.

Refactor push api test apps to have more similar code and use another
manifest entry.

Bug: https://b.corp.google.com/issues/33046496
Test: none

Change-Id: I2c87ccae0e73892eb15fb3e6f98bbb7372e0a24a
This commit is contained in:
Dmitry Dementyev
2016-12-02 14:09:27 -08:00
parent 47fde50bf6
commit d9fc9adf22
9 changed files with 88 additions and 93 deletions

View File

@@ -20,12 +20,15 @@ import android.accounts.Account;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
public class MessageReceiver extends BroadcastReceiver{
private static final String TAG = "PushApiTestAppTwo";
public void onReceive(Context context, Intent intent) {
Account account = (Account) intent.getParcelableExtra("android.accounts.KEY_ACCOUNT");
Toast.makeText(context, "Account " + account.name + " received by Test App 2",
Toast.makeText(context, " android.accounts.VISIBLE_ACCOUNTS_CHANGED Broadcast received",
Toast.LENGTH_LONG).show();
Log.i(TAG, "android.accounts.VISIBLE_ACCOUNTS_CHANGED Broadcast received");
}
}
}