|
|
@ -9,7 +9,6 @@ import android.app.AlertDialog;
|
|
|
|
import android.content.ContentUris;
|
|
|
|
import android.content.ContentUris;
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.res.Resources;
|
|
|
|
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import android.graphics.BitmapFactory;
|
|
|
|
import android.graphics.BitmapFactory;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.net.Uri;
|
|
|
@ -34,7 +33,7 @@ import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.tasks.R;
|
|
|
|
import org.tasks.R;
|
|
|
|
import org.tasks.injection.InjectingActivity;
|
|
|
|
import org.tasks.injection.InjectingActivity;
|
|
|
|
import org.tasks.preferences.Preferences;
|
|
|
|
import org.tasks.preferences.ActivityPreferences;
|
|
|
|
import org.tasks.preferences.ResourceResolver;
|
|
|
|
import org.tasks.preferences.ResourceResolver;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.InputStream;
|
|
|
@ -57,7 +56,7 @@ public class MissedCallActivity extends InjectingActivity {
|
|
|
|
|
|
|
|
|
|
|
|
@Inject StartupService startupService;
|
|
|
|
@Inject StartupService startupService;
|
|
|
|
@Inject TaskService taskService;
|
|
|
|
@Inject TaskService taskService;
|
|
|
|
@Inject Preferences preferences;
|
|
|
|
@Inject ActivityPreferences preferences;
|
|
|
|
@Inject ResourceResolver resourceResolver;
|
|
|
|
@Inject ResourceResolver resourceResolver;
|
|
|
|
|
|
|
|
|
|
|
|
private final OnClickListener dismissListener = new OnClickListener() {
|
|
|
|
private final OnClickListener dismissListener = new OnClickListener() {
|
|
|
@ -113,6 +112,7 @@ public class MissedCallActivity extends InjectingActivity {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
preferences.applyTranslucentDialogTheme();
|
|
|
|
startupService.onStartupApplication(this);
|
|
|
|
startupService.onStartupApplication(this);
|
|
|
|
|
|
|
|
|
|
|
|
setContentView(R.layout.missed_call_activity);
|
|
|
|
setContentView(R.layout.missed_call_activity);
|
|
|
@ -124,7 +124,7 @@ public class MissedCallActivity extends InjectingActivity {
|
|
|
|
String timeString = intent.getStringExtra(EXTRA_TIME);
|
|
|
|
String timeString = intent.getStringExtra(EXTRA_TIME);
|
|
|
|
long contactId = intent.getExtras().getLong(EXTRA_CONTACT_ID);
|
|
|
|
long contactId = intent.getExtras().getLong(EXTRA_CONTACT_ID);
|
|
|
|
|
|
|
|
|
|
|
|
int color = resourceResolver.getResource(R.attr.asThemeTextColor);
|
|
|
|
int color = resourceResolver.getData(R.attr.asThemeTextColor);
|
|
|
|
|
|
|
|
|
|
|
|
returnCallButton = (TextView) findViewById(R.id.call_now);
|
|
|
|
returnCallButton = (TextView) findViewById(R.id.call_now);
|
|
|
|
callLaterButton = (TextView) findViewById(R.id.call_later);
|
|
|
|
callLaterButton = (TextView) findViewById(R.id.call_later);
|
|
|
@ -151,9 +151,8 @@ public class MissedCallActivity extends InjectingActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Resources r = getResources();
|
|
|
|
returnCallButton.setBackgroundColor(color);
|
|
|
|
returnCallButton.setBackgroundColor(r.getColor(color));
|
|
|
|
callLaterButton.setBackgroundColor(color);
|
|
|
|
callLaterButton.setBackgroundColor(r.getColor(color));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addListeners();
|
|
|
|
addListeners();
|
|
|
|
|
|
|
|
|
|
|
|