Fix issue #7328934: change threshold of developer options countdown toast
Delay showing toasts until the third tap. Also harden the dev settings code that pokes system property changes to not crash if a system service throws an exception back. Change-Id: I1351e2c950f2bcc4fc72afb60995fd7f84319e3d
This commit is contained in:
@@ -56,6 +56,7 @@ import android.preference.PreferenceGroup;
|
||||
import android.preference.PreferenceScreen;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.HardwareRenderer;
|
||||
import android.view.IWindowManager;
|
||||
@@ -1111,6 +1112,9 @@ public class DevelopmentSettings extends PreferenceFragment
|
||||
try {
|
||||
obj.transact(IBinder.SYSPROPS_TRANSACTION, data, null, 0);
|
||||
} catch (RemoteException e) {
|
||||
} catch (Exception e) {
|
||||
Log.i("DevSettings", "Somone wrote a bad service '" + service
|
||||
+ "' that doesn't like to be poked: " + e);
|
||||
}
|
||||
data.recycle();
|
||||
}
|
||||
|
Reference in New Issue
Block a user