Prefer AppCompat classes

AppCompat is the preferred way to go for any app targetting
a wider range of SDKs.

Replace all activities and fragments with their AppCompat
variants and fixup method calls to use support variants.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya
2018-04-30 17:30:24 +05:30
parent af57824c14
commit 4ec0b3a908
8 changed files with 44 additions and 44 deletions
@@ -1,8 +1,8 @@
package com.wireguard.android.preference;
import android.content.Context;
import android.preference.Preference;
import android.support.annotation.NonNull;
import android.support.v7.preference.Preference;
import android.system.OsConstants;
import android.util.AttributeSet;
@@ -37,17 +37,12 @@ public class ToolsInstallerPreference extends Preference {
@Override
public CharSequence getTitle() {
return getContext().getString(getTitleRes());
return getContext().getString(R.string.tools_installer_title);
}
@Override
public int getTitleRes() {
return R.string.tools_installer_title;
}
@Override
protected void onAttachedToActivity() {
super.onAttachedToActivity();
public void onAttached() {
super.onAttached();
asyncWorker.supplyAsync(toolsInstaller::areInstalled).whenComplete(this::onCheckResult);
}