android: Hide app selection in profile editor on Android < 5
This commit is contained in:
+8
@@ -22,6 +22,7 @@ import android.content.Context;
|
|||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.security.KeyChain;
|
import android.security.KeyChain;
|
||||||
import android.security.KeyChainAliasCallback;
|
import android.security.KeyChainAliasCallback;
|
||||||
@@ -187,6 +188,13 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
|||||||
mName.setAdapter(completeAdapter);
|
mName.setAdapter(completeAdapter);
|
||||||
mRemoteId.setAdapter(completeAdapter);
|
mRemoteId.setAdapter(completeAdapter);
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
|
||||||
|
{
|
||||||
|
findViewById(R.id.apps).setVisibility(View.GONE);
|
||||||
|
mSelectSelectedAppsHandling.setVisibility(View.GONE);
|
||||||
|
mSelectApps.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
mGateway.addTextChangedListener(new TextWatcher() {
|
mGateway.addTextChangedListener(new TextWatcher() {
|
||||||
@Override
|
@Override
|
||||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
|
||||||
|
|||||||
@@ -341,6 +341,7 @@
|
|||||||
android:text="@string/profile_split_tunnelingv6_title" />
|
android:text="@string/profile_split_tunnelingv6_title" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/apps"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="20dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user